Andre Poenitz a écrit :
On Mon, Mar 13, 2006 at 12:20:28PM +0100, Abdelrazak Younes wrote:
Juergen Spitzmueller a écrit :
Abdelrazak Younes wrote:
The problems seems to be that we try to initialize the QPainter object
multiple times (at least in QLPainter). This is not allowed:
http://doc.trolltech.com/4.1/qpainter.html#QPainter-2
Yep and that's why I erased all use of qp_ private member in
"QLPainter.C" (start() and end() do nothing).
Hmm, I would have suspected that exactly this change is what causes the error.
I am not sure because QLPainter is only painting onto a pixmap. The only painting onto an X11 device is in QWorkArea::paintEvent.

I thought even painting into a pixmap should only be done in a
paintEvent(). The pixmap is located on the server side after all...

I don't think so... or maybe I don't understand what you mean by "server side". The pixmap is located in QWorkArea, painting on it is done throught QLPainter and that could be done anytime. But I guess there could be some buffering optimisation in QLPainter.

Abdel.

Reply via email to