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

[SOLVED] QT Creator Screen resolution messed up on laptop



  • I usually connect my dell laptop(1920x1080) to external display(1920x1080, but way bigger than laptop screen in size), and work in QT Creator there. The resolution is fine on the external display. However, when I disconnect the external display, QT Creator's resolution is messed up on laptop (native display). Restarting QT Creator or the laptop doesn't help.
    Device Manager tells me my monitor & Display Adapter Drivers are up to date. Any suggestions?

    P.S: QT Creator is the only app that has this problem.

    Below is the screenshot of QT Creator on my laptop:
    7d625f60-1fd1-4f47-b3cb-2b01b71142f9-image.png


  • Lifetime Qt Champion

    Hi
    Ehh thats new. restarting it should have fixed it.

    Can you try starting it from the command prompt

    C:\Qt\Tools\QtCreator\bin\qtcreator.exe --platform windows:dpiawareness=2

    or with =0


  • Lifetime Qt Champion

    Hi
    Ehh thats new. restarting it should have fixed it.

    Can you try starting it from the command prompt

    C:\Qt\Tools\QtCreator\bin\qtcreator.exe --platform windows:dpiawareness=2

    or with =0



  • @mrjj thank you so much!
    dpiawareness=2 did nothing, but dpiawareness=0 solved the problem. However, after I close QT and open it again from windows explorer, its resolution is still messed up. I guess I'll create a batch file to launch QT on my laptop.


Log in to reply