Qt Quick controls styling ToolBar, MenuBar and StatusBar
QML and Qt Quick
2
Posts
2
Posters
1.7k
Views
1
Watching
-
The simple answer is that you can only style those components that provide a style at the moments. The others will come in a later version. This includes MenuBar which is tricky as it depends on the platform if it can even be styled or not (think mac os/ubuntu). But ToolBar and StatusBar are actually quite easy to work around. Both of them can be replaced by any item. Ie to create a custom toolbar all you have to do is:
@toolBar: Rectangle {
color: "red"
height: 40
width: parent.width
}@StatusBar is similar. The only drawback is that you have to provide your own margins and the tool bar will not automatically adjust to content height but that should be easily solved by adding anchors or a layout.