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

FileDialog Modality does not work on Linux

XMLWordPrintable

    • Linux/X11

      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()
      }
      }
      
      } 

       

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

            santhoshkumar Santhosh Kumar Selvaraj
            irfan.omair@digia.com Irfan Omair
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes