[Bug 77202] New: knotes crashes when typing left or right key in "preference" or "configure knotes" window

David Faure faure at kde.org
Wed Mar 24 16:23:38 GMT 2004


On Wednesday 24 March 2004 17:04, Tobias Koenig wrote:
> Here is the backtrace. It looks like a recursive call in the
> keyPressedEvent methods of K/QListBox, which results in a stack
> overflow.
> Maybe anybody with more Qt experience could take a look at it?

QListBox is sending the key event to its horizontal scrollbar,
which receives it, but for some reason the "accepted" flag
isn't set (or is resetted by ignore() somewhere), so QApplication
then sends the event to the parent widget, the QListBox again.

Key events are accepted by default, so this has to be a wrong ignore()
somewhere. Can't find where though.

I suggest a breakpoint in QKeyEvent::ignore() or a few Q_ASSERT( e->isAccepted() )
in QScrollBar and QListBox. Looks like a Qt bug in any case.

-- 
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