[Interest] How to render small Images decently on non retina displays with QtQuick?
ekke
ekke at ekkes-corner.org
Tue Mar 6 16:48:52 CET 2018
I'm using QtQuickControls2 and Qt::AA_EnableHighDpiScaling
and so all my images are deployed with my app in different solutions
per ex a 24x24px Icon
test.png (24x24) -- for 160 dpi --
test at 2x.png (48x48)
test at 3x.png (72x72)
test at 4x.png (96x96)
and so for all devices with all kind of dpi by magic the Icons and
Images are looking same
if you don't use the HighDpiScaling you can try to check the density and
then scale your Image or deploy your Images/Icons similar to @2x, ...
and select the right one for dpi of actual device running on
ekke
Am 06.03.18 um 16:27 schrieb Nuno Santos:
> Hi,
>
> I have a simple question.
>
> *How to render small Images decently on non retina displays with QtQuick?*
> *
> *
> In my apps, I use images for icons and logos. They are all big enough
> to be displayed correctly.
>
> However, on non Retina displays they get really bad! And on retine
> display they appear perfectly.
>
> What is the rule of thumb to use QtQuick Image element on on retina
> displays?
>
> Thx!
>
> Regards,
>
> Nuno
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180306/cf92b738/attachment.html>
More information about the Interest
mailing list