Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QTQuickItem and QT_SCALE_FACTOR



  • Hi!
    I'm curently having a problem with QTQuickItem, where, upon the use of the QT_SCALE_FACTOR, the framebuffer's height and width are divided by two, displaying this result: OSGQT scale2.png .

    I have been able to workaround this issue by catching the value of QT_SCALE_FACTOR, and multiplying factors such as the input position and the window size by this.
    Here is the source code of a demo: you will need OpenSceneGraph and QT to compile it if you wish to do so. (I'm using 3.4 and 5.9 respectively.)

    However, I don't feel like this shrinking behavior is expected from the QtQuickItem. Does anyone have an idea of a better solution instead of my proposed workaround ?
    Thanks !


Log in to reply