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

PathView's delegate containing Dial not working with touch

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.14.0 RC2
    • Quick: Controls 2
    • None
    • Android

    Description

      If a PathView's delegate contains a Dial item (from Controls 2.5), the dial is not functioning properly (the 'knob' can't be rotated). The problem can be seen on Android (touch) devices, not on Windows (mouse).

      import QtQuick 2.15
      import QtQuick.Controls 2.15
      
      ApplicationWindow {
          id: window
          width: 640
          height: 480
          visible: true
          title: view.offset
      
          PathView {
              id: view
              anchors.fill: parent
              path: Path {
                  startX: -view.width / 2
                  startY: view.height / 2
      
                  PathLine {
                      x: view.width * 1.5
                      y: view.height / 2
                  }
              }
              model: 3
              delegate: Item {
                  width: 300
                  height: 200
      
                  Dial {
                      width: 200
                      height: 200
                      anchors.centerIn: parent
                  }
      
                  Rectangle {
                      anchors.fill: parent
                      color: "transparent"
                      border.color: "darkorange"
                  }
              }
          }
      }
      

      Attachments

        For Gerrit Dashboard: QTBUG-80682
        # Subject Branch Project Status CR V

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            rayx Ray Gray
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change