From 75fb7106dfb0be55d27e76523ea1950a298a425d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Tue, 21 Apr 2020 15:28:42 -0300 Subject: [PATCH] QGCApplication: fix missing QT_QUICK_CONTROLS_STYLE in linux systems MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- src/QGCApplication.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/QGCApplication.cc b/src/QGCApplication.cc index 50481d909..5871d738c 100644 --- a/src/QGCApplication.cc +++ b/src/QGCApplication.cc @@ -28,6 +28,7 @@ #include #include #include +#include #ifdef QGC_ENABLE_BLUETOOTH #include @@ -218,6 +219,11 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting) } permFile.close(); } + + // Set default QtQuick style if not configured + if (QString(getenv("QT_QUICK_CONTROLS_STYLE")).isEmpty()) { + QQuickStyle::setStyle("Universal"); + } } #endif #endif -- 2.22.0