Solved HighDPI and Qt Designer
-
I too am using Qt Designer (Qt 5.9.1). My app shell looks great on mac (retina @ 200%) but tiny small on Windows 10 (HiDPI @ %200)
Notice the windows one is half the size of the mac one.
i've done this at startup:
QApplication a(argc, argv); a.setAttribute(Qt::AA_EnableHighDpiScaling);
but window still teensy.
any ideas?
-
@davecotter said in HighDPI and Qt Designer:
i've done this at startup:
QApplication a(argc, argv);a.setAttribute(Qt::AA_EnableHighDpiScaling);
AA_EnableHighDpiScaling has to be set before Q*Application constructor is called. So in your case it will not turn this feature on. See the documentation.
This should work:
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication app(argc, argv);
-
oh! so that worked, even for my Widgets app! so yay!
-
Nice :-) Happy coding!