[vlc-devel] [PATCH 1/3] Qt: Enable scaling for Qt>=5.6.

Anatoliy Anischovich lin.aaa.lin at gmail.com
Sun Jul 31 00:29:52 CEST 2016


---
 modules/gui/qt/qt.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/gui/qt/qt.cpp b/modules/gui/qt/qt.cpp
index 317b82c..07b4b3a 100644
--- a/modules/gui/qt/qt.cpp
+++ b/modules/gui/qt/qt.cpp
@@ -478,6 +478,10 @@ static void *Thread( void *obj )
 
     Q_INIT_RESOURCE( vlc );
 
+#if HAS_QT56
+    QApplication::setAttribute( Qt::AA_EnableHighDpiScaling );
+#endif
+
     /* Start the QApplication here */
     QVLCApp app( argc, argv );
 
-- 
2.7.3



More information about the vlc-devel mailing list