[vlc-devel] [PATCH] qt: force QML fusion style
Pierre Lamot
pierre at videolabs.io
Thu Apr 11 16:35:09 CEST 2019
forcing a QQuickStyle avoids the use of system style components which
may have unexpected behaviors.
fusion style is provided by Qt and has desktop look'n feel and use
system palette
---
modules/gui/qt/qt.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/gui/qt/qt.cpp b/modules/gui/qt/qt.cpp
index 5856919789..20fa3e5cf8 100644
--- a/modules/gui/qt/qt.cpp
+++ b/modules/gui/qt/qt.cpp
@@ -42,6 +42,7 @@ extern "C" char **environ;
#include <QApplication>
#include <QDate>
#include <QMutex>
+#include <QtQuickControls2/QQuickStyle>
#include "qt.hpp"
@@ -566,6 +567,8 @@ static void *Thread( void *obj )
QApplication::setAttribute( Qt::AA_DontCheckOpenGLContextThreadAffinity );
QQuickWindow::setDefaultAlphaBuffer(true);
+ QQuickStyle::setStyle("fusion");
+
/* Start the QApplication here */
QVLCApp app( argc, argv );
--
2.19.1
More information about the vlc-devel
mailing list