Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
cmake-macros.qdoc
Go to the documentation of this file.
1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4/*!
5\page qt-wrap-ui.html
6\ingroup cmake-macros-qtwidgets
7
8\title qt_wrap_ui
9\keyword qt6_wrap_ui
10
11\summary {Creates sources for .ui files.}
12
13\include cmake-find-package-widgets.qdocinc
14
15\section1 Synopsis
16
17\badcode
18qt_wrap_ui(<VAR> ui_file1 [ui_file2 ...]
19 [OPTIONS ...])
20\endcode
21
22\versionlessCMakeCommandsNote qt6_wrap_ui()
23
24\section1 Description
25
26Creates rules for calling the \l{uic}{User Interface Compiler (uic)} on the given
27\c{.ui} files. For each input file, an header file is generated in the build
28directory. The paths of the generated header files are added to \c{<VAR>}.
29
30\note This is a low-level macro. See the \l{CMake AUTOUIC Documentation} for a
31more convenient way to process \c{.ui} files with \c{uic}.
32
33\section1 Options
34
35You can set additional \c{OPTIONS} that should be added to the \c{uic} calls.
36You can find possible options in the \l{uic}{uic documentation}.
37
38\section1 Examples
39
40\snippet cmake-macros/examples.cmake qt_wrap_ui
41*/