Qml TableView scrollbar
Unsolved
QML and Qt Quick
-
Dear All,
I've tried to install a very simple program on my windows 10 touch display device:import QtQuick 2.15 import QtQuick.Window 2.0 import QtQuick.Controls 1.4 import QtQuick.Controls 2.4 import QtQuick.Controls.Styles 1.4 import QtQml.Models 2.2 Window { width: 641 height: 480 visible: true title: qsTr("Hello World") Rectangle { width: 640 height: 200 anchors.fill: parent TableView { id: tv horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff verticalScrollBarPolicy: Qt.ScrollBarAlwaysOn TableViewColumn { role: "title" title: "Title" width: 100 } TableViewColumn { role: "author" title: "Author" width: 200 } model: libraryModel1 ListModel { id: libraryModel1 ListElement { title: "Title 1" author: "Topo Gigio" } ListElement { title: "Title 2" author: "Paperino" } ListElement { title: "Title 3" author: "Qui Quo Qua" } ListElement { title: "Title 1" author: "Topo Gigio" } ListElement { title: "Title 2" author: "Paperino" } ListElement { title: "Title 3" author: "Qui Quo Qua" } ListElement { title: "Title 1" author: "Topo Gigio" } ListElement { title: "Title 2" author: "Paperino" } ListElement { title: "Title 3" author: "Qui Quo Qua" } ListElement { title: "Title 1" author: "Topo Gigio" } ListElement { title: "Title 2" author: "Paperino" } ListElement { title: "Title 3" author: "Qui Quo Qua" } } } } }
I've found a strange behaviour: the scrollbar doesn't accept touch events. It works only with the mouse.
Does anydoby face this problem?
What you suggest to solve it in order to get touch events on the handle ?Thank you
Cristiano