Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
High-dpi Image item
2r273gd last edited by
Is Image item supposed to automatically detect that there is a "@2x" file alternative on high-dpi displays and use it? That's what I understood from http://blog.qt.digia.com/blog/2013/04/25/retina-display-support-for-mac-os-ios-and-x11/
Yet a simple example, having test.jpg and email@example.com image files:
Shows test.jpg on my retina display, whether ran by qmlscene or by my C++ application.
I tried different combinations and tricks and nothing seems to work. In Qt examples "@2x" images seem to be used only for icons.
If anyone could hint me how to use Image with high-dpi file alternatives or point me to an alternative, I'd sure appreciate it.
onek24 last edited by
Hey, i never worked with high-res images in QML, but it actually should display it in high-res. I can't see a reason why it should not work. For example: if you've got an image with the resolution of 2560*1440 and you set
an QML Image to its size:
width: 2560; height: 1440
then it actually should display it in this resolution. The real size of the image(the size which it would be on --your display) depends on your display resolution.