[Qt-interest] removeRows() crash.

Stephen Jackson spjackson42 at gmail.com
Thu Apr 23 20:44:06 CEST 2009


On 23/04/09, phil prentice wrote:
>
>  The end of the stack trace from the debugger shows:-
>
>  /* CRASH!!!! */
>  #0  0x0805bf1a in QEvent::type (this=0x0)
>     at /usr/local/Trolltech/Qt-4.2.1/include/QtCore/qcoreevent.h:221
>  #1  0x0805b993 in BottomFacilityListView::selectionCommand (this=0x85119a0,
>     index=@0xbfb8f86c, event=0x0) at bottomFacilityListView.cpp:79
>  #2  0x00affe8e in QAbstractItemView::setCurrentIndex (this=0x85119a0,
>     index=@0xbfb8f86c) at itemviews/qabstractitemview.cpp:767

First things first. In BottomFacilityListView::selectionCommand you
are calling event->type() but event is a null pointer. Does this get
you anywhere?

Regards,

Stephen Jackson



More information about the Qt-interest-old mailing list