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

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.

主站蜘蛛池模板: 凤山市| 信阳市| 石嘴山市| 定西市| 伽师县| 公主岭市| 六盘水市| 喜德县| 思茅市| 沐川县| 东乡县| 肇州县| 吐鲁番市| 扶风县| 六枝特区| 湖口县| 昌都县| 庆安县| 黎平县| 外汇| 永兴县| 嘉禾县| 抚松县| 图们市| 诸城市| 中江县| 长治市| 昌邑市| 三台县| 蒲城县| 长武县| 南投县| 呼和浩特市| 张家川| 汶上县| 灵宝市| 罗城| 邯郸县| 和硕县| 玛沁县| 隆林|