M
M
moreh2016-03-11 14:43:37
QML
moreh, 2016-03-11 14:43:37

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

2 answer(s)
J
Jacob E, 2016-03-11
@Zifix

I think anyone who has experienced this should understand.

It would be better to sketch it all the same, suddenly no one came across?

I
Ilnur Ibautllin, 2016-10-13
@ilnuribat

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 question

Ask a Question

731 491 924 answers to any question