Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
FileDialog Mac Open From C++
PixyWitchy last edited by
When I open a FileDialog with selectExisting to false on Mac, the application isn't responding and I can't see the FileDialog.
QEventLoop loop; connect(dialog, SIGNAL(accepted()), &loop, SLOT(quit())); connect(dialog, SIGNAL(rejected()), &loop, SLOT(quit())); QMetaObject::invokeMethod(dialog, "open"); loop.exec();
Thank you for your help,
Why are you using that local event loop ?
If you want your dialog to be blocking, then use the exec method.