QtQuickSettings
Open, Needs TriagePublic

Description

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?

Related Objects

StatusAssignedTask
OpenNone
Openalex
mwolff created this task.Nov 23 2019, 11:35 AM
alex added a subscriber: alex.Jan 10 2022, 7:56 PM

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

alex claimed this task.Jan 11 2022, 4:23 PM

I will need to do some investigation, hopefully I will find the time this week.

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

alex added a comment.Jan 14 2022, 8:28 PM

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.

alex moved this task from Backlog to Waiting on KF6 Branching on the KF6 board.Mar 24 2022, 5:46 PM

Elisa and latte-dock still need the same change, however they are not part of the Plasma release cycle.

alex moved this task from Waiting on KF6 Branching to Done on the KF6 board.Feb 17 2023, 1:55 PM