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

[Wayland] pixelDelta().y() in wheelEvent is always 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.14.0 Alpha
    • 5.7.1, 5.12.1
    • QPA: Wayland
    • None
    • Fedora 26

      Using Qt version 5.7.1
    • Linux/Wayland
    • 1607b8bb38e57d9d5ebdd075a9b1f3f992c5cfde (qt/qtwayland/dev)

      void MyClass::wheelEvent(QWheelEvent *event){
       std::cout<<event->pixelDelta().y();
      }

      is always 0 when run under wayland. If X11 is used, then correct value is returned.

      If you have problem reproducing this, I will gladly provide more information, since I can reproduce this 100% when under wayland and 0% when on X11.

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

            johanhelsing Johan Helsing
            mmarusak Matej Marusak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes