I'm creating a music app using QML and it uses around five tabs, each using a toolbar. The toolbar should look the same, so instead of having the exact same code for each tab, I wanted to re-use the code of only one toolbar for each of the tabs.
I tried using an external .qml file with only the Toolbar code, but it did not work.
How do I re use the same code for the toolbar, instead of copy paste the same code multiple times in the code file?
Did you try to define a toolbar in the mainview and simply use that id everytime?
Like this: