Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. FileDialog Mac Open From C++
QtWS25 Last Chance

FileDialog Mac Open From C++

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 219 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    PixyWitchy
    wrote on last edited by
    #1

    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");
        loop.exec();
    

    Thank you for your help,

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Why are you using that local event loop ?

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved