QCanvas not showing pixmaps

Janito Vaqueiro Ferreira Filho jvffprogramming at ieg.com.br
Fri Jun 21 01:52:30 BST 2002


Hello!
	I'm trying to make a MDI app with a canvas. I put the QCanvasView in the 
View and a QCanvas in the Doc. When I try to setBackgoundPixmap(buffer) it 
doesn't work. Please help me. Here's the code used:

QString sBuf3 = dir + filename;
QRect changedRect;
QPixmap buffer;

if(QFile::exists(sBuf3))
{
	buffer.load(sBuf3, "PNG", 0);
	canvas->setBackgroundPixmap(buffer);
	changedRect.setSize(canvas->size());
	canvas->setChanged(changedRect);
	canvas->update();
}

Please help me fix this problem. ThanQ,

		JVFF

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list