Crash in Qt when resizing windows
David Faure
faure at kde.org
Thu Aug 24 16:15:34 BST 2006
On Thursday 24 August 2006 16:05, Sebastian Sauer wrote:
> QPainter::begin: Widget painting can only begin as a result of a paintEvent
Should be clear enough. You cannot paint outside a paint event with Qt4.
You need to move this painting code out of the event filter and into the paint event
of the widget (kspread canvas?); or to create a widget on top of the canvas for this
painting (not sure what the inserthandler is exactly). If it's a rubberband-like thing,
you can use QRubberBand (which is basically a "widget on top of the canvas" too)
--
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the kde-core-devel
mailing list