Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Using Qt resources system with vs2010 add-in [closed]
- proj.pri
- RESOURCES += ./proj.qrc
- proj.qrc:
- <RCC>
- <qresource prefix="/myApp">
- <file>Gui/Resources/logo.jpg</file>
- <file>Gui/Resources/another_image.jpg</file>
- </qresource>
- </RCC>
- main.cpp:
- {
- ...
- QImage *logo = new QImage( ":/myApp/Gui/Resources/logo.jpg" );
- QImage *image = new QImage( ":/myApp/Gui/Resources/another_image.jpg" );
- myClass *d1 = new myClass( "Some Text", 48, 30, logo );
- myClass *d2 = new myClass( "Some More Text", 48, 30, another_image );
- ...
- }
- root/app.exe
- root/qt.conf
- root/plugins/imageformats/qjpeg4.dll
- [Paths]
- plugins=./plugins
Add Comment
Please, Sign In to add comment