Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
None
-
5.1.0
-
None
-
Windows XP SP3
-
Delayed widget creation, 37ca2224eca671200a2710f57f970d2993e62aa5 (5.2. beta1)
Description
...When invoked in a slot.
Every time getOpenFileName dialog is opened in a folder that contains many folders/files, the application hangs for about 10 seconds.
Reproducible by
#include <QApplication> #include <QTimer> #include <QFileDialog> class Open : public QObject { Q_OBJECT public: Open() { QTimer::singleShot(0, this, SLOT(open())); } public slots: void open() { QFileDialog::getOpenFileName(0, "Hangs", qgetenv("WINDIR")); } }; int main(int argc, char *argv[]) { QApplication app(argc, argv); QFileDialog::getOpenFileName(0, "Works", qgetenv("WINDIR")); Open obj; return app.exec(); } #include "main.moc"
Doesn't happen with Qt4
Attachments
Issue Links
- relates to
-
QTBUG-6039 QFileDialog slowdown with unreachable mapped network drive
- Closed
-
QTBUG-34330 Regression: QFileDialog::getSaveFileName with a folder crash application on close
- Closed
-
QTBUG-34446 REG (from 5.2 Alpha): QFileDialog::getSaveFileName() does not open the file dialog in the specified directory when using native dialogs
- Closed