Abdelrazak Younes wrote: > Peter Kümmel wrote: >> >> At least I'm now 100% sure this is the right place to look for the bug: >> I've tested your shared_ptr solution, and the resize bug is gone, but >> I get-as assumed-this from Qt: :) >> >> QPaintDevice: Cannot destroy paint device that is being painted. Be >> sure to QPainter::end() painters! > > So the bug is gone but we have a memory leak in exchange!
No leaks, but we don't know what eventually happens: QPaintDevice::~QPaintDevice() { if (paintingActive()) qWarning("QPaintDevice: Cannot destroy paint device that is being " "painted. Be sure to QPainter::end() painters!"); } > Difficult... The bug is not there with Qt4/mingw so I suppose this is > something introduced by the Qt4/MSVC patch. As you are in touch with KDE > people maybe you could ask for advice? I'll have a look at the patches. Peter