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

Flickable on Flickable produce unreliable flicking result

XMLWordPrintable

    • 01fd44cd76f2da1dd1e39d7e5632b3274ca895a3

      Run the code below. The yellow box is on a Flickable, and the text inside
      the box on another Flickable. Try to flick the text without the yellow box
      moving, and note how it works only about half of the time.

      import QtQuick 1.0
      
      Item {
          width: 800
          height: 480
      
          Flickable {
              anchors.fill: parent
              contentWidth: width+1
              contentHeight: height+1
      
      
              Rectangle {
                  width: 100
                  height: 100
                  anchors.centerIn: parent
                  color: "yellow"
      
                  Flickable {
                      anchors.fill: parent
                      clip: true
                      contentWidth: textEdit.width
                      contentHeight: textEdit.height
      
                      TextEdit {
                          id: textEdit
                          width: 200
                          height: 200
                          text: "Asdffk df dslkfjslfk\nBdgf lökfjsdf lkjflksfj\nCdsdf fkhjfd dfd ds" +
                                "Dklf dfsjkfhf klj fhdsd\nEfdjkh fljhdfkjl hdf\nFflöjdlkfj sfs dfld"
                          font.pixelSize: 16
                      }
                  }
      
              }
          }
      }
      

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

            martjone Martin Jones (closed Nokia identity) (Inactive)
            mathiasm Mathias Malmqvist
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes