QT uic rcc moc 命令行使用

 

QT uic rcc moc 命令行使用

 

PS C:\Users\lsgx> uic.exe --help
Usage: C:\Qt\Qt5.5.1\5.5\msvc2012\bin\uic.exe [options] [uifile]
Qt User Interface Compiler version 5.5.1

Options:
  -?, -h, --help                Displays this help.
  -v, --version                 Displays version information.
  -d, --dependencies            Display the dependencies.
  -o, --output <file>           Place the output into <file>
  -p, --no-protection           Disable header protection.
  -n, --no-implicit-includes    Disable generation of #include-directives.
  --postfix <postfix>           Postfix to add to all generated classnames.
  --tr, --translate <function>  Use <function> for i18n.
  --include <include-file>      Add #include <include-file> to <file>.
  -g, --generator <java|cpp>    Select generator.

Arguments:
  [uifile]                      Input file (*.ui), otherwise stdin.

PS C:\Users\lsgx> rcc.exe --help
Usage: C:\Qt\Qt5.5.1\5.5\msvc2012\bin\rcc.exe [options] inputs
Qt Resource Compiler version 5.5.1

Options:
  -?, -h, --help       Displays this help.
  -v, --version        Displays version information.
  -o, --output <file>  Write output to <file> rather than stdout.
  -t, --temp <file>    Use temporary <file> for big resources.
  --name <name>        Create an external initialization function with <name>.
  --root <path>        Prefix resource access path with root path.
  --compress <level>   Compress input files by <level>.
  --no-compress        Disable all compression.
  --threshold <level>  Threshold to consider compressing files.
  --binary             Output a binary file for use as a dynamic resource.
  --pass <number>      Pass number for big resources
  --namespace          Turn off namespace macros.
  --verbose            Enable verbose mode.
  --list               Only list .qrc file entries, do not generate code.
  --project            Output a resource file containing all files from the
                       current directory.

Arguments:
  inputs               Input files (*.qrc).

PS C:\Users\lsgx> moc.exe --help
Usage: C:\Qt\Qt5.5.1\5.5\msvc2012\bin\moc.exe [options] [header-file] [@option-file]
Qt Meta Object Compiler version 67 (Qt 5.5.1)

Options:
-?, -h, --help Displays this help.
-v, --version Displays version information.
-o <file> Write output to file rather than stdout.
-I <dir> Add dir to the include path for header files.
-F <framework> Add Mac framework to the include path for header
files.
-E Preprocess only; do not generate meta object code.
-D <macro[=def]> Define macro, with optional definition.
-U <macro> Undefine macro.
-M <key=value> Add key/value pair to plugin meta data
-i Do not generate an #include statement.
-p <path> Path prefix for included file.
-f <file> Force #include <file> (overwrite default).
-b <file> Prepend #include <file> (preserve default include).
-n <which> Do not display notes (-nn) or warnings (-nw).
Compatibility option.
--no-notes Do not display notes.
--no-warnings Do not display warnings (implies --no-notes).
--ignore-option-clashes Ignore all options that conflict with compilers,
like -pthread conflicting with moc's -p option.

Arguments:
[header-file] Header file to read from, otherwise stdin.
[@option-file] Read additional options from option-file.

 

cd %PROJ_PATH%

C:\Qt\Qt5.5.1\5.5\msvc2012\bin\rcc.exe --name mainwindow .\mainwindow.qrc -o .\GeneratedFiles\qrc_mainwindow.cpp
C:\Qt\Qt5.5.1\5.5\msvc2012\bin\uic.exe .\mainwindow.ui -o .\GeneratedFiles\ui_mainwindow.h

C:\Qt\Qt5.5.1\5.5\msvc2012\bin\moc.exe -DUNICODE -DWIN32 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -D_MSC_VER=1700 -D_WIN32 -IC:/Qt/Qt5.5.1/5.5/msvc2012/mkspecs/win32-msvc2012 -IC:/Qt/Qt5.5.1/5.5/msvc2012/include -IC:/Qt/Qt5.5.1/5.5/msvc2012/include/QtWidgets -IC:/Qt/Qt5.5.1/5.5/msvc2012/include/QtGui -IC:/Qt/Qt5.5.1/5.5/msvc2012/include/QtANGLE -IC:/Qt/Qt5.5.1/5.5/msvc2012/include/QtCore -IE:.\ -I.\ .\mainwindow.h -o .\GeneratedFiles\Debug\moc_mainwindow.cpp

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值