Creating ComponentsA QML component provides a way of defining a new type that you can re-use in other QML files. A component is like a black box; it interacts with the outside world through properties, signals, and slots, and is generally defined in its own QML file. You can import components to screens and applications. You can use the following QML elements to create components:
QML elements allow you to write cross-platform applications with custom look and feel. You can also use ready-made Qt Quick Components for Symbian and MeeGo Harmattan that allow you to create applications with a native look and feel for the selected mobile platform. You can install the components as part of Qt SDK. When you use the Qt Creator project wizard to create Qt Quick applications, you can select which component set to use in your application. Even if you use the Qt Quick Components, you can still write cross-platform applications, by using different sets of QML files for each platform. You can dowload a set of commonly used UI-components for generic use in Qt Quick projects from QML Templates. You can open and edit the templates in Qt Designer. Creating Components in Qt Quick Designer
The following sections contain examples of how to create some common components: [Previous: Using Qt Quick Designer] [Next: Creating Buttons] © 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. Privacy Policy Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia. Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. X
|