Edwin Leuven wrote:
Abdelrazak Younes wrote:Yes, rather than fixing the symptom we should fix the origin of the problem.afaics, every time we contruct a painter: QPainter qp(qwa_->paintDevice());
Wait, there is something fishy here. My original patched used to cache also the current QPainter in qp_ and I see that it is not there. The proper fix would be to use that and to transform setPainterPen(...) into a QPainter * getPainter(...) that will reset the QPainter if needed.
Abdel.