plasma::applet painter
Toussis Manolis
manolis at koppermind.homelinux.org
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...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20090221/0efb770f/attachment.htm
More information about the Plasma-devel
mailing list