Flickering problems after double buffering

"Yao Jing" <[email protected]>
Newsgroups gmane.comp.handhelds.opie.devel
Message-ID <[email protected]>
Hi,

I have encountered flickering problems with my drawing. I have already used 
double buffering, but the screen still flashes every time it updates. I 
coded using QT/e and tested with OPIE on a iPAQ h5400.  Could any one help? 
Thank you.

Here is some code:

void playerclientimpl::paintEvent( QPaintEvent *)
{
	int x, y, w, h, i;
	static int previous_color[16];

	QPixmap doubleBuffer (230, 145);
	doubleBuffer.fill(Qt::white);

	QPainter dbpaint(&doubleBuffer);

	 // draw to the QPixmap.....

	 dbpaint.end();

	 dbpaint.begin(this);
	 dbpaint.drawPixmap(0, 0, doubleBuffer, 0, 0, 20, 15);
}



Best Wishes,

Jing

********************
System Config:
FC4 (2.6.13)
KDE 3.4
gcc 4.0.1
arm-linux-gcc 3.4.1 from handhelds.org
*********************


_______________________________________________

http://opie.handhelds.org/cgi-bin/moin.cgi/DeveloperWikiIndex

Opie-devel mailing list
[email protected]
https://handhelds.org/mailman/listinfo/opie-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.