[Qt-interest] QPixmap
Qrikg
macos_user at yahoo.com
Fri Apr 9 06:29:08 CEST 2010
ok ,Thanks........
--- On Thu, 4/8/10, Gabriel M. Beddingfield <gabrbedd at gmail.com> wrote:
From: Gabriel M. Beddingfield <gabrbedd at gmail.com>
Subject: Re: [Qt-interest] QPixmap
To: "Qrikg" <macos_user at yahoo.com>
Cc: "Qt Interest" <qt-interest at trolltech.com>
Date: Thursday, April 8, 2010, 12:58 PM
On Thu, 8 Apr 2010, Qrikg wrote:
> QPixmap oPixmap;
TFM says:
QPixmap::QPixmap ()
Constructs a null pixmap.
> QPainter painter(&oPixmap);
> QPixmap sample_icon((const char**)sample_icon);
> painter.drawPixmap( QRect(x,0,10,10),
> sample_icon, QRect(0, 0, 10, 10 ));
If you just want to /copy/ the pixmap... why not do this:
oPixmap = sample_icon.copy(0, 0, 10 10);
Otherwise, see the attached example.
-gabriel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100408/0b99f09a/attachment.html
More information about the Qt-interest-old
mailing list