Creating a project enables you to:
- Group files together
- Include forms and assets files
- Specify settings for previewing UIs
Setting up a new project in Qt Design Studio is aided by a wizard that guides you step-by-step through the project creation process. The wizards prompt you to enter the settings needed for that particular type of project and create the necessary files for you.
Studio projects are useful for creating UIs. You cannot use them for application development, because they do not contain:
- C++ code
- Resource files (.qrc)
- Code needed for deploying applications to devices.
Because the UIs do not contain any C++ code, you do not need to build them. To test how well your designs work, you can preview the UIs on the desktop or embedded Linux devices. For more information, see Previewing.
You can export designs from other design tools and import them to projects or create them from scratch using the following wizards:
- MCU Support Application creates an application that uses a subset of Qt QML and Qt Quick Controls types (as supported by Qt for MCUs) that you can deploy, run, and debug on MCU boards.
- Qt Quick Application - Empty creates a Qt Quick UI project that uses Qt Quick types and can be run on all target platforms.
- Qt Quick 3D Application creates a Qt Quick UI project that uses Qt Quick and Qt Quick 3D types.
- Qt Quick Application - Scroll and Qt Quick Application - Stack create a Qt Quick application that uses Qt Quick Controls to implement a scrollable list or a set of pages with a stack-based navigation model.
- Qt Quick Application - Launcher creates a Qt Quick UI project that uses Qt Quick types and defines a QML laucher application.
- Select File > New File or Project.
- Select the type of your project, and then select Choose.
- In the Name field, enter a name for the project.
- In the Create in field, enter the path for the project files, and then select Next (or Continue on macOS).
- In the Screen resolution field, select the screen resolution for previewing the UI on the desktop or on a device.
- In the Qt Quick Controls Style field, select one of the predefined UI styles to use, and then select Finish (or Done on macOS).
Qt Design Studio creates the following files and folders:
- .qml file defines a UI item, such as a component, screen, or the whole UI.
- ui.qml file defines a form for the UI.
- qtquickcontrols2.conf file specifies the preferred style and some style-specific arguments.
- imports folder contains a Constants.qml file that specifies a font loader for the Arial font and a qmldir module definition file that declares the Constant QML type. For more information, see Module Definition qmldir Files. In addition, the QtQuick subfolder contains the Studio components and effects QML types.
You can use wizards also to add individual files to your projects. You can create the following types of files:
- Qt Quick Files
- Flow Item and Flow View generate types that you can use to design the application flow.
- Qt Quick File generates a QML type with one of the following types as the root item: Item, Rectangle, Image, BorderImage, Flickable, Row, Column, Flow, or Grid.
- Qt Quick UI File generates a UI form with one of the above types as the root item.
- Qt Quick Views generates a GridView or a ListView.
- Qt Quick Controls
- ListModel adds a list model to the project.
Available under certain Qt licenses.
Find out more.