Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QFileDialog::getOpenFileName - Odd modal behavior on Mac
Forum Updated to NodeBB v4.3 + New Features

QFileDialog::getOpenFileName - Odd modal behavior on Mac

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.5k Views 1 Watching
  • 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.
  • V Offline
    V Offline
    vikinglief
    wrote on last edited by
    #1

    So I have my application's main window opens a custom QDialog-derived class that is a modal dialog. That dialog, based on a button press, opens the QFileDialog via the convenience method getOpenFileName. On Windows, it opens the standard windows open file dialog, and on Mac, it opens the Mac Finder window. So far so good.

    Now here's my problem: On Windows, the open file dialog is modal as it needs to be. However, on Mac, the finder window is not modal. It is allowing me to click on my application's main window & bring it to the front. Furthermore, clicking on first modal dialog (the one that has the button to launch the finder) does not bring the finder back to the front.

    Has anyone run into this issue before?

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      For me the method works. Which OS X version are you on and which Qt version do you use? And can you provide a simple, small, stripped down but complete sample that demonstrates the behavior?

      http://www.catb.org/~esr/faqs/smart-questions.html

      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