QFileDialog::getOpenFileName and QFileDialog::getSaveFileName hang on MacOS
-
Hello,
I have a major problem with following two functions:
- QFileDialog::getOpenFileName
- QFileDialog::getSaveFileName
They hang (i.e. pressing the buttons won't close the dialog) on MacOS SnowLeopard. It has already been reported "here":https://bugreports.qt-project.org/browse/QTBUG-31486http://
It was reported in May 2013 and is still not fixed. Would you know of any workaround?
Thanks
-
Hi,
What version of Qt are you using with which version of OS X (10.6.8) ?
-
We are running Qt5.1.1, and Snow Leopard. We don't have more details, since that report is from a customer, but we will ask
Thanks -
Ok, just confirmed. It is OS X 10.6.8 v1.1
-
Just to be sure, what version of OS X and which version of Xcode are you using for development ?
-
For development, I am using Lion 10.7.3. For the XCode version, I will only be able to confirm in 2 weeks (out of the office until then).
Thanks -
What is your build setup ?
-
build and test done on X.9 with QTCreator 2.8.1, frameworks QT 5.1.1
that s my qmake
qmake myproject.pro -r -spec macx-clang CONFIG+=debug CONFIG+=x86_64 CONFIG+=declarative_debug CONFIG+=qml_debug
in the project i have
QT += svg
QT += widgets
QT += printsupport
QT += opengl -
Can you try with 5.2 ?
-
Is this still an issue? On Windows, with Qt 5.3 as of Oct 27 2014, with the following code:
QString selectedFilter {"Comma-separated values (*.csv)"}; QString the_file = QFileDialog::getSaveFileName(this, "Choose output file", current_file, QString {selectedFilter}, &selectedFilter, QFileDialog::DontConfirmOverwrite);
... the Cancel button works, and double-clicking on an existing file in the file dialog works, but typing a file name in the edit box and clicking "Save" does not close the dialog - instead, the focus returns to the edit box and the dialog remains open.