Answer the question
In order to leave comments, you need to log in
How to make a separate menu for each stackview page?
I want to make a separate menu for each stackview page. The way I'm doing it right now is passing the value in a variable and for each menu in the MenuBar, setting the menu's visible when needed. But this is not suitable because the menu on the mobile device is displayed so that it has several Menus with submenus, that is, visible hides the menu visually, but qml considers that there are two children in the MenuBar. I think anyone who has experienced this should understand.
Here is the question of how to make the menu be completely different, or is it done in some other way and qml alone is not enough. There are no such examples in the docs.
Answer the question
In order to leave comments, you need to log in
I think anyone who has experienced this should understand.
created a separate component - MenuBar, this is what is located on top
On each page I insert this component and configure it as it should
if the page for creating a new, say, client, then there are buttons - complete the creation
if the page displays a list of something - then there are buttons - filters , sorting
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question