From d3e01b938c5babf26b6fe7eae42ab8e5b9ff2d15 Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 13 Mar 2020 13:09:06 -0400 Subject: [PATCH] Force fusion QML style, prevent problems with KDE --- mirage.pro | 2 +- src/main.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mirage.pro b/mirage.pro index 7646f47e..599563ea 100644 --- a/mirage.pro +++ b/mirage.pro @@ -1,5 +1,5 @@ # widgets: Make native file dialogs available to QML (must use QApplication) -QT = quick widgets +QT = quick quickcontrols2 widgets DEFINES += QT_DEPRECATED_WARNINGS CONFIG += warn_off c++11 release TEMPLATE = app diff --git a/src/main.cpp b/src/main.cpp index 3c1aae8f..01639f23 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -8,6 +8,7 @@ #include #include #include +#include #include "../submodules/RadialBarDemo/radialbar.h" @@ -16,6 +17,9 @@ int main(int argc, char *argv[]) { + // Force a default universal QML style, we have our own theming mechanism + qputenv("QT_STYLE_OVERRIDE","Fusion"); + // Define some basic info about the app before creating the QApplication QApplication::setOrganizationName("mirage"); QApplication::setApplicationName("mirage");