mattie
2nd April 2010, 19:44
Hi,
I am trying to paint a systray icon on the fly. My concrete case: I want to reflect the progress of something in the systray icon by drawing a piechart. I could draw into an QImage and set the icon again everytime I update the qimage. However, this does not seem a nice way?
So I tried subclassing QIcon, overriding the paint method and setting that icon for the systray. However, the paint method is never called (probably because the paint method is not virtual?).
Then I looked into the QIconEngine stuff, but I am doubtful I am going the right way..
What would be the correct way to paint an custom/dynamic systemtray icon?
thanks
matthias
I am trying to paint a systray icon on the fly. My concrete case: I want to reflect the progress of something in the systray icon by drawing a piechart. I could draw into an QImage and set the icon again everytime I update the qimage. However, this does not seem a nice way?
So I tried subclassing QIcon, overriding the paint method and setting that icon for the systray. However, the paint method is never called (probably because the paint method is not virtual?).
Then I looked into the QIconEngine stuff, but I am doubtful I am going the right way..
What would be the correct way to paint an custom/dynamic systemtray icon?
thanks
matthias