Browse Source

UI: Set Qt::AA_UseHighDpiPixmaps only on Qt5

Qt6 enables Qt::AA_UseHighDpiPixmaps by default and will emit a warning
if you try to enable it. To prevent the warning, only set this on Qt5.
Ryan Foster 4 years ago
parent
commit
7214feba73
1 changed files with 2 additions and 0 deletions
  1. 2 0
      UI/obs-app.cpp

+ 2 - 0
UI/obs-app.cpp

@@ -1390,7 +1390,9 @@ bool OBSApp::OBSInit()
 {
 	ProfileScope("OBSApp::OBSInit");
 
+#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
 	setAttribute(Qt::AA_UseHighDpiPixmaps);
+#endif
 	setAttribute(Qt::AA_DontCreateNativeWidgetSiblings);
 
 	qRegisterMetaType<VoidFunc>();