Using Qt5.6.1, I am using QtWinMigrate to house a Qt widget in a parent window. When the parent app is scaled for a high-dpi monitor, the following line:
pApp = new QApplication( argc, argv );
kills the scaling, resizing the parent window so that 150% or 200% scaling apparently jumps down to 100%. This is before I've even created my Qt window - just the constructor of QApplication does this. I've tried various tricks. A qt.conf file like this:
[Platforms]
WindowsArguments = dpiawareness=0,1,2
or before creating the QApplication:
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication::setDesktopSettingsAware(true);
None of it seems to have an effect. How can I prevent this resizing?