theming questions

Marco Martin notmart at gmail.com
Wed Jan 13 14:54:08 GMT 2021


On Sat, Dec 26, 2020 at 12:20 AM Dirk Hohndel <dirk at hohndel.org> wrote:
>
> After spending some quality time with the documentation I could find (not a lot) and with the sample plugin that I was able to find (Noah’s qqc2-breeze-plugin) I’m not sure if I understand more or am more confused. :-)
>
> I was able to build the plugin (that requires a lot of KF5 infrastructure, but for figuring out how this all is supposed to work I’m not too worried about that) and load the plugin, but then what do I do with it? Or asked differently, what do I get from having it?

that one is called a QtQuickControls style. Basically is a set of qml
files that will be instantiated when you create basic components like
Button{}, ComboBox{} and so on.
If your application must have an uniform own style for those controls,
implementing an own QtQuickControls style is the suggested way, rather
having inside the application MyButton{} MyTextBox{} and so on.

It must be installed inside the qtquiccontrols qml plugin (on ubuntu
for instance is /usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls.2/,
don't remener on android, but is sufficient to see where
androiddeployqt puts it in the apk)

the application can be started with the environment variable
QT_QUICK_CONTROLS_STYLE=thestylename
(or in C++ by the app using QQuickStyle::setStyle("stylename") at
startup, they can't change at runtime though)


-- 
Marco Martin


More information about the Plasma-devel mailing list