Guest User

Untitled

a guest
Jan 13th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. Using Qt resources system with vs2010 add-in [closed]
  2. proj.pri
  3. RESOURCES += ./proj.qrc
  4.  
  5. proj.qrc:
  6. <RCC>
  7. <qresource prefix="/myApp">
  8. <file>Gui/Resources/logo.jpg</file>
  9. <file>Gui/Resources/another_image.jpg</file>
  10. </qresource>
  11. </RCC>
  12.  
  13. main.cpp:
  14. {
  15. ...
  16. QImage *logo = new QImage( ":/myApp/Gui/Resources/logo.jpg" );
  17. QImage *image = new QImage( ":/myApp/Gui/Resources/another_image.jpg" );
  18.  
  19. myClass *d1 = new myClass( "Some Text", 48, 30, logo );
  20. myClass *d2 = new myClass( "Some More Text", 48, 30, another_image );
  21. ...
  22. }
  23.  
  24. root/app.exe
  25. root/qt.conf
  26. root/plugins/imageformats/qjpeg4.dll
  27.  
  28. [Paths]
  29. plugins=./plugins
Add Comment
Please, Sign In to add comment