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

QWidget rarely receives unintentional mouse press/release events with tslib

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.5
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Yocto Linux with tslib
    • Platform/s:
      Linux/Other display system

      Description

      We usually enables tslib with QT_QPA_EGLFS_TSLIB or QT_QPA_FB_TSLIB environment variable on embedded linux.

      https://doc.qt.io/qt-5/inputs-linux-device.html#touch

      Then a mousehandler for tslib is created.

      https://code.qt.io/cgit/qt/qtbase.git/tree/src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp?h=5.15.2#n161

       

      When  QT_QPA_GENERIC_PLUGINS=tslib is also set, Qt will creates another mousehandler for tslib.

      https://code.qt.io/cgit/qt/qtbase.git/tree/src/plugins/generic/tslib/main.cpp?h=5.15.2#n59

       

      Because of the duplication, QWidget rarely receives additional mouse press/release events against single touch operation.

       

      To avoid the issue, do not set QT_QPA_GENERIC_PLUGINS=tslib when you want to use tslib.

        Attachments

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

          Activity

            People

            Assignee:
            lagocs Laszlo Agocs
            Reporter:
            tasuku.suzuki Tasuku Suzuki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes