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.

使用模块

使用 Qt 模块的 C++ API 要求直接 (或透过其它依赖) 链接到模块库。几个构建工具对此有专用支持,包括 CMake and qmake .

构建采用 CMake

使用 find_package() 命令定位所需模块组件在 Qt6 包:

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

更多细节,见 构建采用 CMake 概述。

采用 qmake 构建

要配置采用 qmake 构建模块,添加模块作为值为 QT 变量在工程的 .pro 文件:

QT += designer
					

文章和指南

These articles contain information about Qt Designer.

API 参考

These are links to the API reference material.