hi,
use the resource system from Qt4, i mean put all picture in one directory or so and
create an qrc file like: application.qrc.
open the file and enter the follow lines:
<RCC>
<qresource prefix="/pic" >
<file>picture1.png</file>
</qresource>
</RCC>
<RCC>
<qresource prefix="/pic" >
<file>picture1.png</file>
</qresource>
</RCC>
To copy to clipboard, switch view to plain text mode
save and close. open the pro file and add this line:
RESOURCES += application.qrc
you can use it as example:
tBtn
->setIcon
( QPixmap( ":/pic/picture1.png" ) );
tBtn = new QToolButton( "nothing to have :)" );
tBtn->setIcon( QPixmap( ":/pic/picture1.png" ) );
To copy to clipboard, switch view to plain text mode
i hope this help you
Bookmarks