Qt提供了几种命令行和图形工具来减轻和加速开发过程。每一种工具都在这里列出,并给出它们的文档的链接。
Qt设计器——可视化地设计视窗
Qt语言学家,lupdate和lrelease——翻译应用程序使之能够进入国际市场
Qt助手——快速地发现你所需要的帮助
qmake——由简单的宇平台无关的项目文件生成Makefile
qembed——转换数据,比如把图片转还为C++代码
qvfb——在桌面上运行和测试嵌入式应用程序
makeqpf——为嵌入式设备提供预先做好的字体
moc——元对象编译器
uic——用户界面编译器
UserInterfaceCompiler (uic)
用户接口编译器(UIC)
This page documents the User Interface Compiler for the Qt GUI application framework. 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 can also generate an image file to embed raw image data in C++ source code.
这页文档介绍QT图形编程应用框架下的UIC(User Interface Compiler),UIC读取用户接口定义文件(.UI),后缀是.ui这种XML格式文件是由qt另外一个工具Qt Desiger 产生的,UIC工具从 .ui文件产生C++头文件和实现文件,同时也能生成图像的C++代码,这种代码是embed raw image data格式数据。
UIC的使用
File Generation Options
Generate declaration:
产生声明文件,就是头文件.h
命令:uic [options] <file>
Generate implementation:
产生实现文件,就是.cpp文件
命令:uic [options] -impl <headerfile><file><headerfile> - name of the declaration file
Generate image collection:
产生图像格式C++代码
命令:uic [options] -embed <project><image1><image2><image3> ...
<project> - project name
<image> - image files
For convenience, uic can also generate declaration or implementation stubs for subclasses.
Generate subclass declaration:
产生子类声明。
命令:uic [options] -subdecl <classname><headerfile><file><classname> - name of the subclass to generate
<headerfile> - declaration file of the baseclass
Generate subclass implementation:
产生子类实现文件
命令:uic [options] -subimpl <classname><headerfile><file><classname> - name of the subclass to generate
<headerfile> - declaration file of the subclass
General Options
标准操作码,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(sourceText, comment) rather than trUtf8(sourceText, comment) for internationalization.
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 $
<div class="share_buttons" id="sharePanel"></div>
<div class="article_next_prev">
<li class="prev_article">
<span>上一篇:</span><a href="http://blog.csdn.net/achellies/article/details/6134063">Qt编程的禁忌和限制 – moc应该这样用</a>
</li>
<li class="next_article">
<span>下一篇:</span><a href="http://blog.csdn.net/achellies/article/details/6134118">巧用qmake工具生成专业的makefile</a>
</li>
</div>
</headerfile></classname></file></headerfile></classname></headerfile></classname></file></headerfile></classname></image></project></image3></image2></image1></project></headerfile></file></headerfile></file>
分享到:
相关推荐
sm2国密算法加解密,签名、验签QT工具的源代码(包含sm2,sm3和sm4源码)。 环境我使用的QT5.14的IDE编译,其他版本qt未测试。不过仅使用了几个简单控件应该关系不大。 详细介绍参见个人博客:SM2 (含SM3、SM4)国密...
使用Qt工具将一些图论的算法可视化,目前支持的算法有Bellman,Floyd算法,网络单纯形法求解最小费用流。 软件架构 使用Qt5.11.0开发,编译环境为MinGW5.3.0 32bit,部署后可以在Windows系统(x86)以及Linux系统...
qt 5.14版本和vs2019将qt工具加入vs2019
qt5使用的版本工具链
Qt安装配置-MSVC2010编译环境 dotNetFx40_Full_x86_x64 qt-creator-opensource-windows-x86-3.3.2 mingw UPX Shell qtbinpatcher DependencyWalker MSYS2Qt Qt5.2.1静态编译过程详解-转载 Qt静态库的下载和安装配置-...
本实例详细说明了在Qt中如何使用工具按钮,即设置附带图片的按钮,上面是图片,下面是文字。注意设置ToolButtonStyle。
QT资料 帮助你学习QT
ZynAddSubFx的修改以使用Qt工具包和CMake构建系统_C++_Shell_下载.zip
在`QMainWindow`中,工具栏(Tool Bar)用于提供快速访问应用程序的一些常用功能。工具栏通常包含了一系列按钮、工具和操作,用户可以通过单击这些按钮来执行相应的操作。以下是如何在`QMainWindow`中使用工具栏的...
Enc2MusicXML 是一个将 Encore 文件转换为 MusicXML 的 Qt 工具 运行 Enc2MusicXML 将输出写入标准输出并将(大量)调试信息写入标准错误。要在 Unix 上将 Encore 文件转换为 MusicXML,请使用: Enc2MusicXML -m ...
使用Qt工具将一些图论的算法可视化,目前支持的算法有Bellman,Floyd算法,网络单纯形法求解最小费用流。
QT三本书:都是中文版 Qt+Creator快速入门_第三版__霍亚飞编著.pdf C++ Qt设计模式(第2版).pdf 最全Qt样式表使用说明.pdf, 三本QT相关,都是中文,尽可能话费少的积分
QT资源直接下载地址!!只要点击链接即可下载
vs2015 qt插件工具安装程序,安装后再工具的扩展和更新中进行启用即可配置vs2015 qt对应的库路径
Qt5.9.5aarch64的已编译版本,加入QtCreator可直接使用
QT打包工具,简化CMD操作
Qt开发的Windows文件搜索工具。支持指定目录和文件,并按照文件名,或文件内容的进行搜索。对于搜索结果,支持删除列表、彻底删除、删除到回收、排序和导出CSV操作。对展示列表支持单击、双击、右键和表头排序操作。...
QtXlsx读写Excel工具QtXlsx读写Excel工具QtXlsx读写Excel工具QtXlsx读写Excel工具QtXlsx读写Excel工具QtXlsx读写Excel工具QtXlsx读写Excel工具QtXlsx读写Excel工具QtXlsx读写Excel工具QtXlsx读写Excel工具QtXlsx读写...
资源是在QT实现了串口功能的源代码,是一个简单的DEMO。