Qt Designer

此外, QFormBuilder class provides the possibility of constructing user interfaces from UI files at run-time.

注意: This documentation covers the tool Qt Designer and classes related to building graphical user interfaces for Qt Widgets. Qt Design Studio is a UI composition tool that covers all steps of UI design and implementation for Qt Quick user interfaces.

使用模塊

Using a Qt module's C++ API requires linking against the module library, either directly or through other dependencies. Several build tools have dedicated support for this, including CMake and qmake .

構建采用 CMake

使用 find_package() command to locate the needed module component in the Qt6 包:

find_package(Qt6 REQUIRED COMPONENTS Designer)
target_link_libraries(mytarget PRIVATE Qt6::Designer)
					

更多細節,見 構建采用 CMake 概述。

采用 qmake 構建

To configure the module for building with qmake, add the module as a value of the QT variable in the project's .pro file:

QT += designer
					

文章和指南

These articles contain information about Qt Designer.

API 參考

These are links to the API reference material.