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

Slider causes the listview to fail to slide

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 6.2.0
    • Quick: Controls 2
    • None
    • Linux/Wayland, Linux/X11

    Description

      The Slider will always grab the mouse, causing the listview to fail to slide.

       

      import QtQuick 2.0
      import QtQuick.Controls 2.0
      
      ApplicationWindow {
          width: 640
          height: 480
          visible: true
      
          ListView {
              id: listView
              anchors.fill: parent
              model: 100
              delegate: Slider {
                  width: listView.width / 2
              }
          }
      }
      

      As shown in the figure, area A B is a listview. Area A cannot slide, area B can slide.

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              tanghaixiang haixiang tang
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes