Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Various DPI and QtQuick Designer
Brunoo last edited by
I develop an application on iOS, Android, MacOS and Windows and i managed to handle various non integer DPI without glitches.
return Math.ceil(value * (currentDPI / 264))
I know there is the QT_SCALE_FACTOR to do that but it create glitches with non integer scale factor because it doesn't round each value to align them on whole pixel.
I must have missed something. Qt is meant to do cross platform, so there must be a good way to do this.