Its very simple, follow up these steps.
Create new Qrc file.
New Qrc file looks like this
Add the file to Qrc.
using the Resource file in project.
":/new/prefix1/icon/Smiley.bmp"
for example,
QIcon icon;
icon.load(":/new/prefix1/icon/Smiley.bmp");
Note:- Prefix of icon can be changed to your wish.
No comments:
Post a Comment