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

Qt scales incorrectly for different resolution even with DPI aware



  • Hello,
    I have an issue with the scaling of the desktop application. I have attached the screenshot at the end.
    Used the following but

    1. ::setAttribute(Qt::AA_UseHighDpiPixmaps)
    2. etAttribute(Qt::AA_EnableHighDpiScaling); and DisableHighDpiScaling
    3. qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1")
    4. putenv("QT_SCALE_FACTOR", "1");

    Not quite sure where the problem is and how to debug this situation. So any suggestions or help is appreciated. Thank you.
    The actual:
    0_1503402483377_74188125-aeee-481a-904a-ef7f9c8c6fb2-image.png

    After changing the resolution:
    0_1503402513871_395acd2a-8f95-477f-a424-940511575eac-image.png


  • Lifetime Qt Champion

    Hi
    You mean the text is cut off in the list to left?



  • @mrjj Yes, if I move the Window from one screen to another as well I see the same issue. It also exists in the menu bar as you can see in the screenshots.


Log in to reply