[kde-edu]: Porting from Qt3 bitBlt to Qt4.2

Kevin Krammer kevin.krammer at gmx.at
Tue Oct 17 13:30:47 CEST 2006

On Tuesday 17 October 2006 13:07, Carsten Niehaus wrote:
> Hi
> I want to get rid of this bitBlt but don't find out how.
> http://rafb.net/paste/results/AkL4w948.html
> QPaintDevice::drawPixmap seems to be the way to go, but that takes two
> QRectF which I don't have or a QRect which I don't have or... What do I do?
> This doesn't work and I am now really clueless...
>   p.drawPixmap(QRect(0,0,width(), height()), m_pixmap);

Try to paint on the widget directly, according to the Qt4 docs QWidget not 
handles double buffering itself


Kevin Krammer, KDE developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-edu/attachments/20061017/e5273659/attachment.pgp 

More information about the kde-edu mailing list