-
Bug
-
Resolution: Cannot Reproduce
-
Not Evaluated
-
4.5.2
-
None
Platform
Windows XP
Platform details
SP3
Compilers
MSVC
Compiler details
msvc2005 sp1
Subject
QFileSystemModel hangs the app on close
Steps to reproduce / test case
#include <QtGui/QApplication> #include <QtGui/QTreeView> #include <QtGui/QFileSystemModel> int main(int argc, char *argv[]) { QApplication a(argc, argv); QFileSystemModel *model = new QFileSystemModel; model->setRootPath(""); QTreeView *tree = new QTreeView(); tree->setModel(model); tree->setRootIsDecorated(false); tree->setItemsExpandable(false); tree->show(); QObject::connect(tree, SIGNAL(doubleClicked(const QModelIndex&)), tree, SLOT(expand(const QModelIndex&))); return a.exec(); }
Build and run the code above.
Double click on drive C, than same on Windows dir.
Close the tree window.
Result: widget disappears but the application is still running.
Expected: widget disappears and the application stops executing.
Notice: when you navigate to an empty directory and close tree window application stops executing.