[Interest] How can i manipulate pixel data from a QWidget?

Christoph Feck christoph at maxiom.de
Sat Sep 22 21:57:52 CEST 2012


On Saturday 22 September 2012 21:25:42 Mark wrote:
> I could really use some way to get the widget pixel data...

If you really want to _get_ the pixels of a widget, you need to grab 
it using QPixmap::grabWidget() and convert it to a QImage. Note that 
this is very much slower than keeping an QImage buffer and copying the 
result to the widget in paintEvent().

-- 
Christoph Feck
http://kdepepo.wordpress.com/
KDE Quality Team



More information about the Interest mailing list