官术网_书友最值得收藏!

How it works...

The resource system in Qt stores binary files, such as images and translation files, in the executable when it gets compiled. It reads the resource collection files (.qrc) in your project to locate the files that need to be stored in the executable and include them in the build process. A .qrc file looks something like this:

<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>images/copy.png</file>
<file>images/cut.png</file>
<file>images/new.png</file>
<file>images/open.png</file>
<file>images/paste.png</file>
<file>images/save.png</file>
</qresource>
</RCC>

It uses the XML format to store the paths of the resource files, which are relative to the directory that contains them. The listed resource files must be located in the same directory as the .qrc file, or one of its subdirectories.

主站蜘蛛池模板: 雷波县| 梁河县| 昌邑市| 巴青县| 永丰县| 垣曲县| 巴塘县| 浦江县| 大竹县| 合阳县| 崇礼县| 大英县| 汤原县| 延吉市| 宁乡县| 瑞丽市| 汝阳县| 株洲县| 南川市| 潮州市| 南郑县| 乌什县| 长白| 汾阳市| 包头市| 宝坻区| 通海县| 太康县| 金华市| 铁力市| 甘孜| 盐亭县| 英吉沙县| 特克斯县| 博兴县| 三门峡市| 大洼县| 同心县| 嘉祥县| 安国市| 广昌县|