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

Cannot start dragging from a Text inside MouseArea with drag.filterChildren set to true

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.1.1, 5.2.0
    • None
    • Linux 64bit

    Description

      The issue is described in the title.

      The test case follows.

      Dragging gesture fails if started from the Text element

      import QtQuick 2.0
       
      Rectangle {
          width: 360
          height: 360
          Text {
              anchors.centerIn: parent
              text: "Hello World"
          }
          MouseArea {
              anchors.fill: parent
              drag.target: parent
              drag.filterChildren: true
       
              Rectangle {
                  id: hereworks
                  color:"yellow"
                  width: 200
                  height: 150
              }
              Text {
                  id: heredoesnt
                  anchors.top: hereworks.bottom
                  text: "TRY DRAGGING FROM HERE"
              }
          }
      }
      

      Attachments

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

        Activity

          People

            martinj Martin Jones
            faenil Andrea Bernabei
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes