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

Lost clicks on Android Qml applications using Map

    XMLWordPrintable

Details

    Description

      Create a QtQuick Control app using QtCreator. Change main.qml to this simple qml:

      import QtQuick 2.5
      import QtQuick.Controls 1.4
      import QtLocation 5.6
      
      ApplicationWindow {
          visible:    true
          width:      640
          height:     480
          title:      qsTr("Hello World")
      
          Map {
              anchors.fill:   parent
              plugin: Plugin { name: "osm" }
      
              Button {
                  id:     button1
                  x:      100
                  y:      100
                  text:   "Button1"
                  onClicked: {
                      console.log("Button1 clicked")
                      button2.visible = true
                  }
              }
      
              Button {
                  id:         button2
                  x:          200
                  y:          100
                  text:       "Button1"
                  visible:    false
                  onClicked:  visible = false
              }
          }
      }
      

      Repro steps:
      Click button 1 - button 2 shows up
      Click button 2 - button 2 hides
      Click button 1 - doesn't work
      Click button 1 - now it works

      Hoping to at least get workaround since my app is now unusable. I have not being able to find workaround myself. All worked fine in Qt 5.5. Moved my app to 5.8, now unusable. The lost click problems show up all over my app since it is based on a Map ui. The above was the smallest repro I could come up with. But I'm seeing it all over the place.

      Change Map to Rectangle for Flickable and it works.

      Attachments

        1. simpler.qml
          0.8 kB
          Shawn Rutledge

        Issue Links

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

          Activity

            People

              paangele Paolo Angelelli
              DonLakeFlyer Don Gagne
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes