Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Tumbler on android not working

Tumbler on android not working

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 1 Posters 51 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.
  • F Offline
    F Offline
    felsi
    wrote last edited by
    #1

    Hello!

    I think, i found a bug.
    The tumbler can't be scrolled, dragged or flicked. It moves only a few pixels.
    This happens only:

    • with button delegates
    • when wrap is true (or with PathView as contentItem)
    • on android (afaik)
    • with Qt > 6.5.3
    import QtQuick
    import QtQuick.Controls
    
    Window {
        visibility: Window.Maximized
    
        Tumbler {
            model: 10
            anchors.fill: parent
    
            wrap: true
    
            delegate: Button {
                text: modelData
            }
            
            // wrap: false
            // delegate: Text {
            //     horizontalAlignment: Text.AlignHCenter
            //     text: modelData
            // }
        }
    }
    
    

    I am pretty surprised, that such a heavy bug survived so many Qt updates...
    I'll create a bug report, except someone finds a mistake in my very small code-sample.
    Or knows some other reason, maybe android...
    And i would be very glad, if someone could find a quick fix, maybe it's a focus issue...

    1 Reply Last reply
    0
    • F Offline
      F Offline
      felsi
      wrote last edited by
      #2

      It's already reported as a bug.
      https://bugreports.qt.io/browse/QTBUG-133228

      And i found a workaround:
      TapHandler, HoverHandler and MouseArea are not affected.

      1 Reply Last reply
      0

      • Login

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