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

Modal Overlay don't block multi touch

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.9.2
    • 5.9.0
    • Quick: Controls 2
    • None
    • Nexus 10 (Android 5.1), HTC One_M8 (Android 6.0)
    • 57810c5c736f69790dd49fa1146eb70de8c95a55

    Description

      In touch devices with two or more finger touch, it is possible for example to open combo box popup or click on the button, if modal overlay in ApplicationWindow is visible.

      import QtQuick 2.7
      import QtQuick.Controls 2.0
      import QtQuick.Layouts 1.3
      
      ApplicationWindow {
          visible: true
          width: 640
          height: 480
      
          ColumnLayout {
              spacing: 10
      
              ComboBox {
                  implicitWidth: 300
                  model: ListModel {
                      id: model
                      ListElement { text: "Banana" }
                      ListElement { text: "Apple" }
                      ListElement { text: "Coconut" }
                  }
              }
              Button {
                  property int clickCounter: 0
      
                  implicitWidth: 300
                  text: clickCounter
                  onClicked: clickCounter++
              }
          }
      
          Popup {
              id: popup
      
              x: parent.width - width
              y: parent.height - height
              modal: true
              width: 50
              height: 50
              closePolicy: Popup.NoAutoClose
          }
          Component.onCompleted: popup.open()
      }
      
      

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              permotion88 Karol Polak
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes