Re: Secont ToolBar with Icon
Hi,
Try this:
Code:
QIcon qIcon
(":/myResource/icon1.png");
Note that ":" points to the resource file.
Re: Secont ToolBar with Icon
Thanks.
Sorry, mistake of me.:(
The other file gui-service/res/images.qrc is not a part of the "normal GUI" ui-File.
At first we had a second Service-GUI.ui file.
Now our ServiceGui class is subclassed from the normal GUI class, so the qrc file is stand allown.
Rod
Re: Secont ToolBar with Icon
You can use the static function QResource::registerResource
after you have used rcc on the .qrc file
More info on http://qt-project.org/doc/qt-4.8/resources.html
Re: Secont ToolBar with Icon
@Rhayader: Thank You, the link was precise, now it works perfect.