06-19-2014 03:22 PM
I have actually 2 queries
1) How we can access attachedobjects defined in QML in C++ ?
2) I am loving development on Blackberry 10 as C++ is one of my favorites. But I am a little lost when it comes to handling UI in classes. For example when we create project through momentics we have a class called ApplicationUI. It handles all the stuff of UI (by default) we do in C++ . like for example creating UI from qml document and setting as root etc. I am now working on an app that have NavigationPane as root and then I keep pushing pages (as screens) . But right now code for all pages is inside my ApplicationUI. What is the best practice for keeping UI logic of each page in a separte C++ class ?
I also develop for Android which has separate class for each Activity so code do not get mixed for each Activity. Please guide me how can I keep UI logic of each Page in separate C++ class ?
Solved! Go to Solution.
06-23-2014 04:04 AM
06-23-2014 04:33 AM
thanks.... for example if i have a qml file "test_screen.qml" .....is it a good practice that to handle its UI interaction in C++ I create a class "TestScreen" in test_screen.hpp/cpp file ?
secondly is it necessary to pass ApplicationUI object around to my other classes...or everything that I do in ApplicationUI can be done in other classes as well ?
06-23-2014 05:10 AM