| Summary: | Crash running on a QGuiApplication | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-qqc2-desktop-style | Reporter: | Albert Astals Cid <aacid> |
| Component: | general | Assignee: | Marco Martin <notmart> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | kde |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://commits.kde.org/plasma-integration/1781d60b230c32977c078e2943d94c506d7ee645 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Albert Astals Cid
2017-09-07 12:44:29 UTC
So we've dicovered this is because my application is a QGuiApplication and this code uses qApp->style() quite a lot, and that will crash, so either this needs to stop using qApp->style() or the plugin itself should not load if the app is a QGuiApplication instead of a QApplication Git commit 1781d60b230c32977c078e2943d94c506d7ee645 by David Edmundson. Committed on 22/09/2017 at 15:14. Pushed by davidedmundson into branch 'Plasma/5.11'. Set QtQuickControls theme in QPT Summary: Currently we set QT_QUICK_CONTROLS_STYLE in startkde. This causes problems as we're setting vars that meddle with other developers setups. Especially if they're using QGuiApplication which will instantly crash when using the desktop theme. By moving the setting inside the QPT we can: - only affect QApplications - only affect apps that are desktopSettingsAware If this env is already explicitly set by someone else, that has precedence. Also if this ever does move from being an env variable, we will probably want to add the code here. Related: bug 384481 Test Plan: Unset env Ran systemsettings5 the scrollbar was the correct colour Reviewers: #plasma, gladhorn Reviewed By: #plasma, gladhorn Subscribers: gladhorn, plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D7935 M +15 -0 src/platformtheme/kdeplatformtheme.cpp M +1 -0 src/platformtheme/kdeplatformtheme.h https://commits.kde.org/plasma-integration/1781d60b230c32977c078e2943d94c506d7ee645 |