@jpnurmi Great, thanks for your help!
You can define an accessibleName for your objects and distribute different StyleSheets.
either via the designer or QWidget::setAccessibleName(const QString &name);
Thanks, I hope you like it!
No one has replied
I've got the point and mark this one as solved
thanks for your support!
I finally managed to get custom colors. I gave my QTreeView an object name to be able to write this in CSS:
basically now my model controls text color through Qt::ForegroundRole regardless of the application's CSS.
I feel like it's the wrong place to put theming, but it works for me at the moment.
Well... until we decide to have different themes :-°
I have found a solution myself in the QT-Sourcecode of ButtonStyle.qml. I have to :
in myButtonStyle.qml and in the LabelSection I use The StyleHelpers.stylizeMnemonics, so my ButtonStyle.qml looks like:
I was missing
import QtQuick.Extras 1.0
On android and Windows now it works fine, it does not work with winrt
Thanks - The code from RamK is the solution.
control. ... is the crux.
Hi and welcome to devnet,
You can find the design guidelines on the respective developers site e.g. developer.apple.com for OS X
Do you mean something like KDE's themes ? Or maybe the aqt-stylesheets project ?
Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.