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

QT_QPA_EGLFS_ROTATION rotates mouse events but not touch events

    XMLWordPrintable

Details

    • Linux/Yocto

    Description

      See https://doc.qt.io/qt-6/embedded-linux.html#environment-variables-used-by-eglfs

      Code

      #include <QtWidgets>
      
      int main(int argc, char *argv[])
      {
          qputenv("QT_QPA_EGLFS_ROTATION", "-90");
          qputenv("QT_LOGGING_RULES", "qt.qpa.input*=true;qt.qpa.events*=true;qt.qpa.tuio.*=true;qt.pointer.*=true;qt.pointer.velocity=false;");
      
          QApplication a(argc, argv);
      
          QWidget win;
          auto layout = new QVBoxLayout(&win);
          for (int i = 0; i < 20; ++i)
              layout->addWidget(new QPushButton(QString("Button %1").arg(i)));
          win.show();
      
          return a.exec();
      }
      

       

      Steps to reproduce

      1. Build and run the code above on an embedded Linux device (eglfs) with a touchscreen + mouse
      2. Use the mouse to click any 5 buttons
      3. Use the touchscreen to tap the same 5 buttons

       

      Outcomes

      • (Step #2) The chosen buttons visually respond to the clicks (Expected)
      • (Step #3) The chosen buttons don't visually respond to the taps. Perhaps a different button responds instead (Expected)

      Attachments

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              skoh-qt Sze Howe Koh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes