IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

qt_wrap_ui

Creates sources for .ui files.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

qt_wrap_ui▲

 

Synopsis▲

 
Sélectionnez
qt_wrap_ui(<VAR> ui_file1 [ui_file2 ...]
           [OPTIONS ...])

qt6_wrap_ui(<VAR> ui_file1 [ui_file2 ...]
           [OPTIONS ...])

Description▲

Creates rules for calling the User Interface Compiler (uic) on the given .ui files. For each input file, an header file is generated in the build directory. The paths of the generated header files are added to <VAR>.

This is a low-level macro. See the CMake AUTOUIC Documentation for a more convenient way to process .ui files with uic.

Options▲

You can set additional OPTIONS that should be added to the uic calls. You can find possible options in the uic documentation.

Examples▲

 
Sélectionnez
set(SOURCES mainwindow.cpp main.cpp)
qt_wrap_ui(SOURCES mainwindow.ui)
add_executable(myapp ${SOURCES})

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+