tags:

views:

29

answers:

2

Hi,

The effect I wanted to achieve is something like the Mail icon in iPhone. There is a rounded rectangle on the topright corner of the Mail icon. The number inside the rectangle shows the current number of unread emails and can be dynamically changed when new emails come in. I am wondering if it is possible to do this using Qt 4.6 for a desktop application interface. If it is possible, what classes should I start to learn? (I guess Qt should have some bitmap manipulation class.) Thank you.

+1  A: 

You can draw into a QImage or QPixmap using QPianter, then save the icon to a png file - or since you are using it in your app, just change the internal icon directly.

Martin Beckett
A: 

Take a look at QImage and QPainter.

Tom Sirgedas