Important: Please read the Qt Code of Conduct -

FileDialog Mac Open From C++

  • Hello,

    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");

    Thank you for your help,

  • Lifetime Qt Champion


    Why are you using that local event loop ?

    If you want your dialog to be blocking, then use the exec method.

Log in to reply