@Christian-Ehrlicher Thanks a lot, it is exactly what I was missing!
@BigBen Also check out eventFilter. Here's a link to the documentation.
Indeed it is! :( It is something that we are looking into doing for certain this FY.
So i'm not entirely sure what you are trying to do, however i can confirm that Toolbar itself works.
I used the code you provided here, just removed the instance of Screen01 so i could test the Toolbar item by itself, as you can see it loads in the live preview fine.
You can also check the Application Output (seen here at the bottom of the screen) to look for any errors in your file.
you could try enabling mipmap for a smoother transformation, this will make the resizing a bit slower and is the reason why it's off by default.
But if your image has a fixed size to begin with, than it doesn't matter much.
That's how I would do it.
As for the position, have a look at these:
No one has replied
@jsulm Well, texts are not displayed but height of toolbar is too large.
I have a similar problem too. I want to change the font size and I get a fallback base style.
I've already reported a bug against Qt. Maybe we could find another workaround in the meantime.
All the android styling seems done by the AndroidStyle singleton object coming from QtQuick.Controls.Styles.Android 1.0 module.
They do, for example
But, if we look further, styleDef seems specific to the Android drawables, see this commit
And the Android Button.qml seems to use something like this for setting the style
But I don't know where the settings come from
Do you have any idea what to do with it? I don't see any other option that copying the Android Styles tree and adapting it to our needs. But it's awful.
Hi and welcome to devnet,
Add a slot in the widget containing the toolbar and connect QStackedWidget::currentChanged to it. In the slot check the index value and enable/disable the button.
Hope it helps