Can the init function (and others like it) be ported to some alternative approach that doesn't require users to remember calling this function? Is there a QGuiApplication hook available which we can register a callback in that would call the init function directly if the KDeclarative lib is linked into the process?
Description
Status | Assigned | Task | ||
---|---|---|---|---|
Open | None | T12130 KDeclarative API Review | ||
Open | alex | T12135 QtQuickSettings |
Can the init function (and others like it) be ported to some alternative approach that doesn't require users to remember calling this function?
This is doable using https://doc.qt.io/qt-5/qcoreapplication.html#Q_COREAPP_STARTUP_FUNCTION
But the question is, where the code should be moved to. It only depends on KConfig/KConfigXT.
Because of this I think cascading configs are seen as a feature here, like trying out different settings for a single app. Because of that moving it to kirigami would not be possible. Though in the KCM plasma-desktop/kcms/qtquicksettings) only kdeglobals are written to
@davidedmundson @vkrause Any ideas?
IDoes the code matter for platforms other than plasma since the kcm is plasma only?
If not maybe it could go to our platform theme?
Potentially interesting could be the automatic fallback to software rendering also on other platforms
Potentially interesting could be the automatic fallback to software rendering also on other platforms
Which would be an argument against moving it the plasma platform theme?
Outside of the plasma spectrum there is only Elisa as API-user that I know.
https://invent.kde.org/plasma/plasma-integration/-/merge_requests/33 moved in the platformtheme
https://invent.kde.org/frameworks/kdeclarative/-/merge_requests/118 deprecates it
https://invent.kde.org/plasma/kwin/-/commit/504e0e01ccd196de367f77c4211e1ccc4e8f01af
https://invent.kde.org/plasma/kscreenlocker/commit/9ec761e6d1524df940316227b2c18eb9e080ee81
https://invent.kde.org/plasma/kde-cli-tools/-/commit/8415c2be7fd8d8e4e7fec7f1751f833e676d9d78
https://invent.kde.org/plasma/discover/commit/67909e7a1113b7650056c02246c7b475e5d4f58b
https://invent.kde.org/plasma/plasma-sdk/commit/0e751f7b4901349b7a05b143df17c2b86227009b
https://invent.kde.org/plasma/plasma-systemmonitor/commit/920acfb4f32dd64e5756c74a4f5bfe366073bcc5
https://invent.kde.org/plasma/systemsettings/commit/6ecd2a53a78625689554896568c755e697fc96b4
https://invent.kde.org/plasma/plasma-workspace/commit/b68b59dac6f4b70acb56587dc74e3f121f72bc2e
https://invent.kde.org/plasma/plasma-desktop/commit/4510ecb32cbeb8a875ba7de2a97ad9e603a893b2
Elisa and latte-dock still need the same change, however they are not part of the Plasma release cycle.