Thanks. I got the snapshot. Very helpful!
----- Original Message ---- From: Alan Alpert <[email protected]> To: [email protected] Sent: Fri, July 16, 2010 10:11:46 AM Subject: Re: [Qt-qml] Working with larger projects. On Fri, 16 Jul 2010 23:32:13 ext Jason H wrote: > I'm going through the docs looking for the guidelines for working with > larger projects made up of multiple QML files, but I am not finding much. > I start at http://doc.qt.nokia.com/4.7-snapshot/declarativeui.html > There isn't really any documentation on this, we encourage you to organize your files however you feel comfortable with. If you desire guidance, our demos tend to follow the pattern of having all but the main file inside a sub-directory, which the main file imports. > Is there any documentation on the .qmlproject file format? No. This is part of the experimental Qt Quick support in Creator, not actually needed by QML. > Also, it would be nice if the docs gave examples of how to structure > projects and such projects. So far all I have is an import statement. > > My immediate task is: > I have 2 QML files and qmproject file. I added a 3rd "main.qml". I want to > have the main load the two other QML files and switch between them. (Each > file defines a "page") However, I would actually like the main to be > dynamic that is, it creates and destroys the pages as it needs them, as > there will be many and i don't want all that in memory all the time. > Everything comes from local storage so loading shouldn't be an issue. > > Also I was wondering if there was/is going to be a Declarative ItemStack { > property int page; ...} that would allow people to switch between pages > with an animated transitions. > There is an example of how to do something similar, I put a presentation framework in QML up on gitorious: http://gitorious.org/qt-qml-demo-playground As you can guess, it animates between pages. It does this fairly easily using a few loaders. This logic could be abstracted into an ItemStack, if you wanted. It is unlikely that a primitive will be provided for this purpose, since it can be done through composition. -- Alan Alpert Software Engineer Nokia, Qt Development Frameworks _______________________________________________ Qt-qml mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-qml _______________________________________________ Qt-qml mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-qml
