plasma::applet painter

Toussis Manolis manolis at
Sat Feb 21 14:26:27 CET 2009

I want to add some effect to an applet
I am really stuck on how I can get a QPixmap of my applet
after i painted the applet
I need something like  

QPixmap* m_oldPixmap;

void PlasmaApplet::paintInterface(QPainter *p,
        const QStyleOptionGraphicsItem *option, const QRect &contentsRect)
   .... do the painting....
  and now:
  store the current image of the applet for future use in a QPixmap/QImage 
 something like that:
  m_oldPixmap=new QPixmap(PlasmaApplet::pixmap())

any ideas?
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the Plasma-devel mailing list