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

Flicking TreeView with touchscreen does not work as QTouchDevice::devices() is empty

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.12.0
    • Quick: Controls 1
    • None
    • Raspbian on Pi3B+, Debian 9.5 VM cross-building host. Qt 5.12.0
    • Linux/Other display system

    Description

       Flicking a QML `TreeView` does not work possibly because `Settings.hasTouchScreen` returns `false`. This seems to be due to the fact that `QTouchDevice::devices()` is empty.

      I put the following code in `main()` of the standard Qt example:

      https://doc.qt.io/qt-5/qtquickcontrols1-filesystembrowser-example.html:

      const auto devices = QTouchDevice::devices();
       qDebug() << "************** devices.length(): " << devices.length();
      for (const QTouchDevice *dev : devices)
       qDebug() << "**************** dev->type():" << dev->type();
      

      The `length()` returned is 0, although the touchscreen is working with that example. Selection, button press, etc. all work, but the list cannot be flicked.

      I am using tslib on the latest Raspbian.

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            diracsbracket Paul Dirac
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes