08-13-2012 03:02 PM
08-13-2012 03:56 PM - edited 08-13-2012 04:00 PM
I don't see any way to use Menu in a classic QML way like other UI components.
In my opinion it should work like at MeeGo-Harmattan by accessing a property of the root element. In fact I searched exactly for something like this. At example like at enabling the Status Bar (the area where the battery info is drawn) in the PageStackWindow Element which is only possible to place as a root element. But nothing compareable seems to exists at BB10.
So lets see how they want so integrate it "in a later release".
09-18-2012 02:18 PM
Menu *menu = Menu::create()
.add(ActionItem::create().title("Menu Item 1"))
.add(ActionItem::create().title("Menu Item 2"))
Just a small update. I finally was tired waiting for the next Beta Release and needed the settings menu to make some progress at my project. So I tried to implement it like in the example via C++. Sadly I were unable to connect the Signal correctly to a Slot in my Code.
I found this solution and modified it a little bit. Just in case someone is interested: Link
It is now somewhat out of both worlds. I create and design my ActionItems in the qml file and assign those to the correct places via the C++ code. Still not the best solution, but there are already a lot of UI stuff at Cascades only via C++ code possible... so what...