[solved] QML Submenu
-
wrote on 13 May 2015, 13:25 last edited by HappyCoder
Hi,
there is a widget example for menus see here and
in the first picture you can see a submenu from Edit -> Format.How can i create a submenu using QML?
Thx
-
wrote on 13 May 2015, 13:54 last edited by
Hi,
yes, it's simple. For example:menuBar: MenuBar { Menu { title: "1" Menu { title: "1.1" MenuItem { text: "1.1.1" } MenuItem { text: "1.1.2" } } } Menu { title: "2" Menu { title: "2.1" MenuItem { text: "2.1.1" } MenuItem { text: "2.1.2" } } } }
-
wrote on 18 May 2015, 06:22 last edited by
It's working fine, i was nesting the MenuItem entrys and that didn't work
Stefan
3/3