- Qt5 C++ GUI Programming Cookbook
- Lee Zhi Eng
- 108字
- 2021-07-02 12:17:54
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.
推薦閱讀
- 常用運(yùn)動(dòng)損傷理療技術(shù)操作手冊(cè)
- 寬體探測(cè)器CT臨床應(yīng)用
- 癲癇的診斷與治療:臨床實(shí)踐與思考
- 超聲醫(yī)學(xué)專科能力建設(shè)專用初級(jí)教材:介入分冊(cè)
- 外生殖器皮膚病及相關(guān)疾病臨床診療
- 世界衛(wèi)生組織成人和青少年癌痛藥物治療和放射治療管理指南
- 臨床神經(jīng)認(rèn)知及社會(huì)功能評(píng)估手冊(cè)
- 實(shí)用肝膽病臨床手冊(cè)
- 圖說超廣角熒光素眼底血管造影
- 中醫(yī)臨床技能實(shí)訓(xùn)教程
- 鑲牙就醫(yī)指南
- 骨科臨床X線檢查手冊(cè)
- 走進(jìn)孤獨(dú)的世界:為家長專業(yè)解讀自閉癥
- 我抑郁了嗎:抑郁者自救指南
- 中國膠質(zhì)瘤放射治療專家共識(shí)