PDA

View Full Version : problem in Displaying image on push button



durgarao
2nd January 2009, 09:53
Hi,

How i can display image on pushbutton in QTDesigner...
I tried by change style sheet(Add Resource->backround image or image,border image)options,but it is not displayed.

and i attached sample file

spirit
2nd January 2009, 09:59
have you seen "icon" property?

durgarao
2nd January 2009, 10:13
I didn't see "icon" property, where i need to see the "icon" property...
i already add the .png image file to Resource Files (.qrc)in the project

spirit
2nd January 2009, 10:14
in property editor. look at it carefully.

durgarao
2nd January 2009, 10:27
Thanks spirit, Now i can change the icon of push button by giving path to icon in property editor...
but one think i didn't understand then what's the use of Change style sheet property for backround image ,border image or image