Unsolved Button in MenuBar
-
Hello,
In the app I develop I have a usual MenuBar with such dropdowns as File, Edit, etc. I need to place active button near those dropdowns on the highest level. I can't use Action as it is not supported in MenuBar component. I found out that MenuBarItem has onTriggered event and it works great for me, but there is one little problem - after click event focus stays in MenuBar. In this case if I move my mouse left and right other menu items will be selected and their submenus shown. Tried to solve it with code setting focus to false, but it didn't solve the problem.
Could you help me to find a way how to unfocus clicked MenuBarItem or maybe there is any other MenuBar component that can be used as a Button? -
@PavloPonomarov said in Button in MenuBar:
I can't use Action as it is not supported in MenuBar component
-
Hi
MenuBarItem ?
Is it QML ? -
@mrjj
Yes!
Sorry, should have wrote about it