PDA

View Full Version : Qt Library Project Resources



qtoptus
15th March 2015, 23:25
Hey,

Is there a way to add a Qt resource file with images embedded in a Qt Library project created with Visual Studio Qt Add-In?
I'm looking to have a main application that loads libraries (extensions) with their resources/icons to be used in the main application. The solution should be portable. for example do the same thing on Linux or Apple environment.

Thanks.

jefftee
15th March 2015, 23:39
Yes, it sounds like you want to use a Qt Resource file (qrc file type). You can add images, files, strings, etc into the resource file which is embedded as part of your library or executable, then retrieve them at run time.

Edit: I don't use Windows or the Visual Studio add-in, so perhaps my answer isn't an option when using the Visual Studio add-in.