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

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.

主站蜘蛛池模板: 南阳市| 天台县| 太仆寺旗| 邯郸市| 梅河口市| 鱼台县| 化州市| 巴林左旗| 承德市| 米泉市| 班玛县| 军事| 新源县| 南丹县| 建德市| 钦州市| 松阳县| 石嘴山市| 南召县| 高邑县| 西安市| 丽江市| 凤凰县| 无锡市| 临泉县| 饶阳县| 岑溪市| 天全县| 斗六市| 库尔勒市| 甘德县| 莎车县| 寻乌县| 永昌县| 定西市| 新津县| 本溪| 江永县| 叶城县| 溆浦县| 宣武区|