[Qt-interest] Drawing to QImage
Ulf-Alexander v. Ceumern-Lindenstjerna
ceumern at vrmagic.com
Wed Apr 14 16:40:41 CEST 2010
Hi,
since QImage is derived from QPaintDevice you can just create a QPainter
on your image:
QImage i(...);
QPainter p(&i);
// paint
Hth, ulf
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
> bounces at trolltech.com] On Behalf Of BRM
> Sent: Wednesday, April 14, 2010 3:50 PM
> To: qt-interest
> Subject: [Qt-interest] Drawing to QImage
>
> I'm looking for some good information on drawing to QImage instead of
> directly in a QWidget.
> Doing a quick google search didn't up much useful information; and
> while I've taken my first stab at it - my results were not useful
> either.
> I know I'm probably doing something wrong; and would like to be able
to
> read over some stuff on it; but the Qt documentation merely mentions
it
> in passing.
>
> TIA,
>
> Ben
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list