diff --git a/src/platformtheme/kdeplatformtheme.cpp b/src/platformtheme/kdeplatformtheme.cpp --- a/src/platformtheme/kdeplatformtheme.cpp +++ b/src/platformtheme/kdeplatformtheme.cpp @@ -395,12 +395,8 @@ //force QtQuickControls2 to use the desktop theme as default void KdePlatformTheme::setQtQuickControlsTheme() { - //if the user is running only a QGuiApplication, explicitely unset the QQC1 desktop style and abort - //as this style is all about QWidgets and we know setting this will make it crash + //if the user is running only a QGuiApplication, abort as this style is all about QWidgets and we know setting this will make it crash if (!qobject_cast(qApp)) { - if (qgetenv("QT_QUICK_CONTROLS_1_STYLE").right(7) == "Desktop") { - qunsetenv("QT_QUICK_CONTROLS_1_STYLE"); - } return; } //if the user has explicitly set something else, don't meddle