Is it possible to relate a .qrc in a lib? if yes, how could I do that?
Best regards.
Rodrigo Amorim
Is it possible to relate a .qrc in a lib? if yes, how could I do that?
Best regards.
Rodrigo Amorim
could you explan a bit more what do you mean?
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Rodrigo (25th June 2007)
Of course
I'm creating some plugins for my application, some of the plugins are creating new widgets, new tabs and so on.
those widget created by the plugins, there are some icons in it, i would like to put the icons in a resource file, but in this case i'm not doing an application, i'm doing a lib. I created a .qrc and i called it in my plugin, but it didn't work.
so, i'd like to know if there is a way to associate a .qrc file in my plugins (lib)
i'm sorry about my english!
Thank you in advance.
You do it the same way as you would in your app. (i.e. via the RESOURCES qmake variable).
But: read the the Resource System part of the Qt documentation; especially the last paragraph.
If there is a possibility that your library is getting linked statically, you must use Q_INIT_RESOURCE.
Rodrigo (25th June 2007)
I solved my problem, i forgot to put in the .qrc file the following line:
Resource += plugin
when i inserted that, it worked perfectly!
thanks
Bookmarks