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

ScrollView embedded in another one doesn't handle mouseWheel events

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • Some future release
    • 5.2.1
    • Quick: Controls 1
    • None
    • Qt 5.2.1
      QtCreator 3.0.1
      OS: Windows 8 Pro 64bits

    Description

      The top level scrollview handles every mouseWheel events no matter what's inside.
      ie.: you can't scroll with mouse wheel in a textarea embedded in a scrollview.
      I think that the child views should have priority.

      Scroll_wrong_behavior.qml
      import QtQuick 2.1
      import QtQuick.Controls 1.0
      
      ScrollView {
          width: 500
          height: 400
      
          Rectangle {
              width : 500
              height: 800
              gradient: Gradient {
                      GradientStop { position: 0.0; color: "white" }
                      GradientStop { position: 1.0; color: "blue" }
                  }
              clip: true
      
              //Can't scroll with mouse wheel
              TextArea{
                  x: 50
                  y:50
                  width: 150
                  height: 100
                  text: "LongText LongText LongText LongText LongTextLongText LongText LongTextLongTextLongText LongText LongText LongTextLongText
      LongText LongText LongText LongText LongText LongTextLongTextLongTextLongText"
              }
          }
      }
      

      Attachments

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

        Activity

          People

            bachewii Jens
            daveloper David Joassard
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes