Qt-interest Archive, May 2008
Problem painting QGraphicsScene Background
Message 1 in thread
Hello,
I'm trying to reimplement drawBackground(...) of QGraphicsView. I want
to draw an image( pixmap ) on the background.
void drawBackground( QPainter * painter, const QRectf & rect ) {
i = QImage( (unsigned char*) m_rgbaPixmap, m_videoFrameWidth,
m_videoFrameHeight, QImage::Format_RGB32 );
painter->drawImage( rect, i );
}
unfortunately this results in a white background whenever the view is
scaled, i.e., the painter is scaled already.
Thanks in advance,
Thomas
--
[ signature omitted ]