QT uic
来源:互联网 发布:js 输出json 编辑:程序博客网 时间:2024/06/06 18:50
from http://linux.die.net/man/1/uic
Description
This page documents the User Interface Compiler for the Qt GUI toolkit. The uic reads a user interface definition (.ui) file in XML as generated by Qt Designer and creates corresponding C++ header or source files. It also generates an image file that embeds raw image data in C++ source code.
Generate declaration:
uic [options] <file>
Generate implementation:
uic [options] -impl <headerfile> <file>
<headerfile>: name of the declaration file
Generate image collection:
uic [options] -embed <project> <image1> <image2> <image3> ...
<project>: project name <image[1..n]>: image files
For convenience, uic can also generate declaration or implementation stubs for subclasses.
Generate subclass declaration:
uic [options] -subdecl <subclassname> <baseclassheaderfile> <file>
<subclassname>: name of the subclass to generate
<baseclassheaderfile>: declaration file of the baseclass
Generate subclass implementation:
uic [options] -subimpl <subclassname> <subclassheaderfile> <file>
<subclassname>: name of the subclass to generate
<subclassheaderfile>: declaration file of the subclass
General Options
-o file
Write output to file rather than to stdout.
-nofwd
Omit forward declarations of custom classes in the generated header file. This is necessary if typedef classes are used.
-tr func
Use func() instead of tr() for internationalization.
-version
Display the version of uic and exit.
Usage
uic is almost always invoked by make(1), rather than by hand.
Here are useful makefile rules if you only use GNU make:
%.h: %.ui
uic $< -o $@
%.cpp: %.ui
uic -impl $*.h $< -o $@
If you want to write portably, you can use individual rules of the following form:
NAME.h: NAME.ui
uic $< -o $@
NAME.cpp: NAME.ui
uic -impl $*.h $< -o $@
You must also remember to add NAME.cpp to your SOURCES (substitute your favorite name) variable and NAME.o to your OBJECTS variable.
(While we prefer to name our C++ source files .cpp, the uic doesn't care, so you can use .C, .cc, .CC, .cxx or even .c++ if you prefer.)
- QT uic
- QT UIC
- uic
- Qt Designer工具与uic的使用
- QT中 uic 工具的使用
- 学习Qt:使用uic(user interface compiler)
- Qt 一些编译出错解决如缺少 uic-qt4
- Qt 的缺少 .dll 文件 找不到uic命令
- vs+qt uic rcc 系统找不到指定的路径
- 自学qt之元对象系统 QCombo Box QMessageBox uic
- QT编译问题:/usr/local/Trolltech/Qt-4.7.0/bin/uic:命令未找到
- uic 作用
- uic命令
- Qt中用户界面的User Interface Compiler(uic)机制的相关说明
- qt使用uic命令将后缀名为.ui的文件输出成.h文件方法
- Qt中用户界面的User Interface Compiler(uic)机制的相关说明
- QT 的Moc Uic Rcc有什么用(360ui移植到eclipse)
- QMake 和 Uic
- Tomcat线程池实现简介(三)
- Tomcat线程池实现简介(四)
- JavaScript性能实战 - Array
- VI 的常用技巧
- Tomcat线程池实现简介(五)
- QT uic
- 程序禁用启用网络/网卡
- SqlDeveloper启动时的一个错误修正
- 什么是REST?
- C# 自定义事件处理
- 运行seam需要那一个版本的JBoss Application Server?
- 转一篇老外的:Integrating .NET and SAP 101
- 红旗linux6 解决笔记本耳机音响同时发声问题
- 如何做好升级测试