Qt Widgets Designer

Provides classes to create your own custom widget plugins for Qt Widgets Designer and classes to access Qt Widgets Designer components.

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

注意: This documentation covers the tool Qt Widgets 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 Widgets Designer.

API 參考

These are links to the API reference material.