Create Qt Quick UI Prototypes
Qt Quick UI Prototype projects are useful for testing or prototyping user interfaces, or for setting up a separate project just for QML editing, for example. You cannot use them for application development because they do not have:
- C++ code
- Resource files (.qrc)
- Code needed for deploying applications to devices
For more information about how to turn Qt Quick UI Prototype projects into Qt Quick Application projects, see Converting UI Projects to Applications.
To create a Qt Quick UI Prototype project:
- Select File > New Project > Other Project > Qt Quick UI Prototype.
- Select Choose to open the Project Location dialog.
- In the Name field, enter a name for the application.
- In the Create in field, enter the path for the project files. Select the Use as default project location check box to create new projects in this folder by default.
- Select Next (or Continue on macOS) to open the Define Project Details dialog.
- In the Minimum required Qt version field, select the Qt version to develop with. The Qt version determines the Qt Quick imports that are used in the QML files.
You can add imports later to combine Qt Quick basic types with Qt Quick Controls, Qt Quick Dialogs, and Qt Quick Layouts.
- Select the Use Qt Virtual Keyboard check box to add support for Qt Virtual Keyboard to the application.
Note: If you have not installed the Qt Virtual Keyboard module when you installed Qt, an error message will appear when you try to open main.qml.
- Select Next to open the Kit Selection dialog.
- Select kits for the platforms that you want to build the application for.
Note: Kits are listed if they have been specified in Preferences > Kits.
- Select Next to open the Project Management dialog.
- Review the project settings, and select Finish (on Windows and Linux) or Done (on macOS) to create the project.
Qt Creator creates the following files:
- .qmlproject project file defines that all QML, JavaScript, and image files in the project folder belong to the project. Therefore, you do not need to individually list all the files in the project.
- .qml file defines a UI item, such as a component or the whole application UI.
- ui.qml file defines a form for the application UI. This file is created if you selected the With .ui.qml file check box.
To use JavaScript and image files in the application, copy them to the project folder.
See also Create Qt Quick Applications, How To: Manage Kits, and Creating Projects.
© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.