android - QML - Show MenuBar or Menu items by click event -
is there way show menubar , menuitem onclicked event of control (or other event)? i've tried use popup function of menu did nothing. purpose re-implement menu button in applicationwindow on android application build make alike different current menu button, or use clicking on other widget popup other menu. learning qml 3 weeks, can me it? think should quite easy, , want make more simpler , logical. appreciated code examples.
looks wrong direction of question. understood need show menu , it's quite easy done popup function. example standard template of qtquick project button show specified menu.
menu { id: menufile title: qstr("&file") menuitem { text: qstr("&open") ontriggered: messagedialog.show(qstr("open action triggered")); } menuitem { text: qstr("e&xit") ontriggered: qt.quit(); } } button{ onclicked: menufile.popup() } but i've tried show menubar menus listed , it's need way of functionality.
Comments
Post a Comment