Maluko_Da_Tola
26th August 2010, 11:45
Hi,
I want to display an icon on a button. I added a prefix and the correspondent .png file to the project. Then I used the following syntax:
OKbutton->setIcon(QIcon(":/GraphicBarrier/Headphones-32.png"));
The code compiles but NO icon is displayed. Why is this happening?
Thank you
I want to display an icon on a button. I added a prefix and the correspondent .png file to the project. Then I used the following syntax:
OKbutton->setIcon(QIcon(":/GraphicBarrier/Headphones-32.png"));
The code compiles but NO icon is displayed. Why is this happening?
Thank you