Complex QML UI questions
We are beginning the creation of a fairly complex user interface and would like to accomplish the following:
In order to avoid the entire UI being placed in one QML file with an unreasonable amount of “states” we would like to embed QML elements into a larger QML file where each item is a separate document. For instance, if we were creating an automotive dashboard we would have a speedometer QML file that controlled all the UI elements relating to the speedometer. This would sit in the larger dashboard UI along with the odometer qml file, etc.
Does this make sense? What code will accomplish this?
Also, how can I navigate between different QML UI pages? For instance in the dashboard example the setup pages would link to one another as the menu system is traversed.
maybe this will help you: http://doc.qt.nokia.com/4.7/qdeclarativedocuments.html [doc.qt.nokia.com]
but like Denis said you should look at flickr, twitter demos
http://doc.qt.nokia.com/4.7/qdeclarativemodules.html [doc.qt.nokia.com] is a good place to start for the import statement. In general, reading through the overviews at http://doc.qt.nokia.com/4.7/qtquick.html [doc.qt.nokia.com] should give you a good introduction to QML.
What I cannot figure out in any example is whether I can navigate from something like a mainpage.qml to a settings.qml and keep them wholly separate. Is this possible?
I look forward to a book or other resource where I can learn from ground up. Combing through examples has not proved to be super helpful yet.