0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00

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.
This commit is contained in:
Ryan Foster 2021-03-09 10:28:19 -05:00
parent 1793515bbf
commit 7214feba73

View File

@ -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>();