-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
Description
Describe the new feature
It will be nice HiDPI to be enabled by default.
int main( int argc, char ** argv )
{
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
#endif
#endif
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true);Additional info
Currently one could use QT_AUTO_SCREEN_SCALE_FACTOR and QT_SCALE_FACTOR_ROUNDING_POLICY environment variables, but I'm not sure how many people know about them..

