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

FileDialog Modality does not work on Linux

    XMLWordPrintable

Details

    • Linux/X11

    Description

      Looks like Qt.ApplicationModal is not making FileDialog modal. If we click outside of the fileDialog, then clicking should not be allowed. Or at least fileDialog should be closed.

      Following little code seems to be working on Windows but not On Linux.

      ApplicationWindow {
      visible: true
      width: 600
      height: 200
      title: "FileDialog"
      
      FileDialog {
      id: fd
      modality: Qt.ApplicationModal
      fileMode: FileDialog.SaveFile
      }
      
      Button {
      anchors.left: parent.left
      text: "sample"
      }
      
      Button {
      anchors.centerIn: parent
      text: "Click"
      onClicked: {
      fd.open()
      }
      }
      
      } 

       

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            irfan.omair@digia.com Irfan Omair
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes