PDA

View Full Version : Qt Designer Icons in QToolButton



pdevroede
21st December 2010, 07:24
Hi,

Sorry for the newbie question - I am trying to set up QToolButtons in Designer and everything seems very straightforward. The problem is that when I set up an image for the icon for the QToolButton it shows up in the preview in Designer but *does not* show up when I actually compile the application and run it. The QToolButtons are just blank.

Any idea of what I might be doing wrong?

The images are .png, BTW.

Thanks in advance.

Peter

Lykurg
21st December 2010, 07:32
most likely you gave relative paths. Have a look at the resource system of Qt. Use that and you won't have that problem anymore.

pdevroede
21st December 2010, 21:33
Thanks! Worked like a charm.