PDA

View Full Version : Avoiding unnecessary files and folder in Impelementation



salmanmanekia
30th May 2008, 13:21
Hi
I am using a QIcon function and it takes the icon from a folder called pics , in the coding i have fixed the location as 'c:\pics'..but if i gave my program to someone else then i only wanted to give the source files and project file ...i want to avoid giving the picture folder and other unneccesary make file...if the given info is ambigious pls do ask me and also ....HELP ME..!!

jpn
30th May 2008, 14:29
Hi, either use QCoreApplication::applicationDirPath() to find the images or take a look at The Qt Resource System (http://doc.trolltech.com/latest/resources.html).

salmanmanekia
30th May 2008, 14:54
yes,thanks.....QT's Resource Collection File (.qrc) is the solution ...