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

Slider causes the listview to fail to slide

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Duplicate
    • Affects Version/s: 6.2.0
    • Fix Version/s: None
    • Component/s: Quick: Controls 2
    • Labels:
      None
    • Platform/s:
      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

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

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There is 1 open Gerrit change