How to style Menu or MenuBar component
-
I can't see any "style" property on those, neither I can see MenuStyle component.
How do we style those ?What about StatusBar component ?
I see a StatusBarStyle component : http://qt-project.org/doc/qt-5/qml-qtquick-controls-styles-statusbarstyle.html
but no "style" property in StatusBar documentation : http://qt-project.org/doc/qt-5/qml-qtquick-controls-statusbar.html -
Great :)
Yes statusbar it is working, it is just the style property that is missing StatusBar documentation.
Another question, assume I have a whole software populate with lots of Button, CheckBox... components. Is there a way to style them all without editing each code to replace Button -> MyButton or to add the "style: MyButtonStyle" ?
I search for something like an Application wide style, where you could define for example :
@
ApplicationStyle {
buttonStyle: MyButtonStyle { ... }
checkboxstyle: MyCheckboxStyle {...}
....
}
@
and all Buttons through the application will fetch that style unless another style is specified. -
Not yet. We are currently investigating how to make it easier to deploy themes. At the moment there is no real official way to do it. It is however possible to set the QT_QUICK_CONTROLS_STYLE environment variable to point to a subdirectory you provide containing a different set of default style delegates though.
-
What about styling a GroupBox ?
Can't find GroupBoxStyle in Qt5.2 but there's some on the net:
https://qt.gitorious.org/qt/qtquickcontrols/source/88e867cbeedd9063a08b9c401a8e56d0fb43d17b:src/styles/GroupBoxStyle.qml
http://download.qt-project.org/ministro/android/qt5/objects/5.106-armeabi-v7a/qml/QtQuick/Controls/Styles/GroupBoxStyle.qmlWhen is it planned ?
Is it possible to write our own by inheriting Style ? (I see some private imports there...)Thanks