此外, 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 .
使用
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 概述。
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.
These are links to the API reference material.