Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-61479

QFileDialog Sheet Improper Behaviour

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.8.0, 5.9.0
    • QPA
    • None
    • macOS

    Description

      The easiest way to describe what I'm talking about is through the attached gif.

      I have setup a QFileDialog in my code as follows:

      QFileDialog* dialog = new QFileDialog(this, Qt::Sheet);

      dialog->setWindowModality(Qt::WindowModal);

      if(dialog->exec() == QFileDialog::Accept){...}

       

      The intent is to get a sheet as many applications in macOS, this code gets me close until right after the animation where it snaps out as if it were just set to modal. 

       

      On another project I work on, I use dialog->open() and go through the effort of setting up a slot to handle the file saving. The sheets behave perfectly like this and I have none of the snapping that occurs after. However, this can be a pain to have split off into a separate handler to handle this.. Is there something wrong in my code or is this a bug in Qt? This bug has happened in Qt 5.8.0 and 5.9.0 for me on both OS X 10.11 and macOS 10.13 Beta.

       

      Any further information needed I will be happy to provide, cheers!

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            suicvne Michael Santiago
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes