Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Button in MenuBar
PavloPonomarov last edited by PavloPonomarov
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?
Pl45m4 last edited by
I can't use Action as it is not supported in MenuBar component
Is it QML ?
PavloPonomarov last edited by
Sorry, should have wrote about it