Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt6.8 QML ListView Bug: Cannot click item in the list while scrolling ListView
Forum Updated to NodeBB v4.3 + New Features

Qt6.8 QML ListView Bug: Cannot click item in the list while scrolling ListView

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 126 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Janmean
    wrote last edited by
    #1

    Issue

    • When I drag a list with the mouse or scroll through a list with the scroll wheel, I cannot immediately click on the list items and usually need to wait about 0.5 seconds for the items in the list to accept the left mouse button event.

    • I think this is a bug. When I scroll through the list, the mouse click event for a short period of time is still judged as scrolling. I tried adjusting the 'pressDelay' property, but it still hasn't eased.

    • My current solution is to disable dragging the list with the mouse or use Qt6.7 version

    Qt Version

    This issue occurred between Qt6.8 ~ Qt6.10, but it did not appear in Qt6.7.

    Simple Example

    import QtQuick
    import QtQuick.Controls
    
    //disable mouse events to prevent the list from scrolling due to mouse clicks
    //acceptedButtons: Qt.NoButton
    ListView{
        anchors.fill: parent
        //There are enough items to require scrolling through the list
        model:ListModel{}
        ScrollBar.vertical: ScrollBar {}   
        delegate:Rectangle{
            width: ListView.view.width
            height: 40
            border.width: 1
            border.color: "blue"
            MouseArea {
                anchors.fill: parent
                onClicked:{
                    console.log("Item onClicked")
                }
            }
        }
    }
    
    1 Reply Last reply
    0
    • J Offline
      J Offline
      Janmean
      wrote last edited by
      #2

      This bug has been fixed in Qt6.10.1
      https://bugreports.qt.io/browse/QTBUG-135931
      Reg[6.8.2-6.9.0]ListView containing AbstractSeries does not scroll on Drag

      1 Reply Last reply
      0
      • J Janmean has marked this topic as solved

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved