Force fusion QML style, prevent problems with KDE

This commit is contained in:
miruka 2020-03-13 13:09:06 -04:00
parent b85236d514
commit d3e01b938c
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -8,6 +8,7 @@
#include <QQmlContext>
#include <QQmlComponent>
#include <QFileInfo>
#include <QQuickStyle>
#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");