Force fusion QML style, prevent problems with KDE
This commit is contained in:
parent
b85236d514
commit
d3e01b938c
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue
Block a user