Qt Visual Studio Add-in:Managing Resources
2010-07-03 18:11
459 查看
To add new resources, you must first create a new .qrc file. To do this, open the Add New Item dialog, select Qt Resource File from the Qt Project Items folder, and click Open. The newly created.qrc file will be displayed in the Qrc Editor, which is part of the Add-in installation.
At this point, the .qrc file only contains a prefix named after the project. You can add resources under that prefix by selecting it and clicking on the Add button on the right hand side. Then click Add File in the context menu. Now the Resource Editor will display a dialog that allows you to add an existing file.
When referring to the resources later on from Qt code, you must prepend the prefix, the file name, and a colon. For example, :/MyProject/print.bmp. Using the context menu, you can rename the predefined prefix or add other prefixes to the .qrc file.
See the Qt Resource System document for more information.
相关文章推荐
- Qt Visual Studio Add-in:Managing Projects
- A previous installation of Qt5 Visual Studio Add-in was detected. 解决方法
- Qt Visual Studio Add-in:Adding Form Files to the Project
- Qt Visual Studio Add-in: Creating Qt Translation Files for the Project
- A previous installation of Qt5 Visual Studio Add-in was detected. Please uninstall it before running
- Qt Visual Studio Add-in: Frequently Asked Questions
- C++问题-Qt Visual Studio Add-in
- Qt Visual Studio Add-in 导出的 .pri 怎么用?
- Qt -visual studio add-in
- 使用Qt Visual Studio Add-in 实现中文ts文件,解决中文乱码问题
- QT常见问题一:VS打开QT解决方案,Qt Visual StudioAdd-in插件报错误
- Qt Visual Studio Add-in: Getting Started
- HOWTO: Get the project flavor (subtype) of a Visual Studio project from an add-in
- A previous installation of Qt5 Visual Studio Add-in was detected. Please uninstall it before running
- Reflector Add-in for Visual Studio
- Introducing Outlook Add-in Support for Visual Studio 2005 Tools for Office
- QT项目常见问题一:VS打开QT工程后,编译 ,Qt Visual Studio Add-in报错
- A previous installation of Qt5 Visual Studio Add-in was detected. 解决方法
- Visual Studio Reflector add-in works for my Reverse Engine Job[Visual Studio Reflector插件服务于我的逆向工程学习工作]
- A previous installation of Qt5 Visual Studio Add-in was detected. Please uninstall it before running this installer解决办法