PDA

View Full Version : How to create my own widget



jayreddy
30th October 2009, 05:06
hii all..

I want to create a widget that contains only a picture. For example i want a widget that contains only the smiley and also i don't want it within a square box or so. I can get this from QPainter but with that class i can get the picture in a filled form like smiley. I want only a circle in which i can place an icon. Also i can get this by using QIcon but on pressing a QIcon it shows a button on the background. I dont want that when i click the icon. I want completely transparent both when steady and when clicked.


Thanks

Jayakrishna Reddy

axeljaeger
30th October 2009, 07:29
How do you "press" a QIcon?

jayreddy
30th October 2009, 09:30
sorry not exactly clicking an icon but i am pointing to a situation when a icon is placed on a pushbutton or tool button

axeljaeger
30th October 2009, 09:32
Make a button and remove its border using cascading style sheets.

jayreddy
30th October 2009, 11:45
Thank you. I got my answer :)