Arbitrary positioning QML popup menu
QML and Qt Quick
3
Posts
1
Posters
2.4k
Views
1
Watching
-
ok. I found undocumented Q_INVOKABLE method of Menu __popup(qreal x, qreal y, int atActionIndex = -1)
may be it an method will removed in future(please do not remove it!)
but when I got geometry of menu window by Menu.__popupGeometry.height and Menu.__popupGeometry.width
I got by Menu.__popupGeometry.width real width of menu window, but Menu.__popupGeometry.height gave value 2 permanently.As well. If I click on the menu having a child menu - the menu is closed. Although this menu should not be closed if it has no action.