The call stack is emptied when the application crashes. By stepping through the code I observe the following call stack
0 QMetaObject::metacall qmetaobject.cpp238 0x6a20445c
1 QMetaObject::activate qobject.cpp 3272 0x6a214bbe
2 QTreeView::expanded moc_qtreeview.cpp 201 0x03c95332
3 QTreeViewPrivate::expand qtreeview.cpp 2884 0x03c90beb
4 QTreeViewPrivate::expandOrCollapseItemAtPos qtreeview.cpp 1319 0x03c89f54
5 QTreeView::mousePressEvent qtreeview.cpp 1816 0x03c8c5e4
6 QWidget::event qwidget.cpp 8183 0x037c4182
7 QFrame::event qframe.cpp 557 0x03b3e6bc
8 QAbstractScrollArea::viewportEvent qabstractscrollarea.cpp 1043 0x03bcbf0f
9 QAbstractItemView::viewportEvent qabstractitemview.cpp 1619 0x03c55785
10 QTreeView::viewportEvent qtreeview.cpp 1256 0x03c89aa3
11 QAbstractScrollAreaPrivate::viewportEvent qabstractscrollarea_p.h 100 0x03e26a13
12 QAbstractScrollAreaFilter::eventFilter qabstractscrollarea_p.h 116 0x03e2506c
13 QCoreApplicationPrivate::sendThroughObjectEventFil ters qcoreapplication.cpp 847 0x6a1ffc73
14 QApplicationPrivate::notify_helper qapplication.cpp 4392 0x037796e5
15 QApplication::notify qapplication.cpp 3959 0x03777909
16 QCoreApplication::notifyInternal qcoreapplication.cpp 732 0x6a1ff9dc
17 QCoreApplication::sendSpontaneousEvent qcoreapplication.h 218 0x03ded53e
18 QApplicationPrivate::sendMouseEvent qapplication.cpp 3056 0x03776118
19 QETWidget::translateMouseEvent qapplication_win.cpp 3317 0x037dfc63
20 QtWndProc@16 qapplication_win.cpp 1657 0x037daaa6
... <More>
and that it finally crashes on:
USER32!IsWindow in C:\Windows\syswow64\user.32.dll
To me it seams like its two variants of the connect statement.
// I wrote TreeWidget instead of 'this' to highlight that it is the tree. I actually use:
// which should be the same as:
//connect(const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type = Qt::AutoConnection)
// I wrote TreeWidget instead of 'this' to highlight that it is the tree. I actually use:
connect((this, SIGNAL(expanded(QModelIndex)),SLOT(setRootIndex(QModelIndex)));
// which should be the same as:
connect((this, SIGNAL(expanded(QModelIndex)),this,SLOT(setRootIndex(QModelIndex)));
//connect(const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type = Qt::AutoConnection)
To copy to clipboard, switch view to plain text mode
Bookmarks