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

QCursor::setPos() doesn't work for qpa

    XMLWordPrintable

    Details

    • Commits:
      b319d44798fe4c5aa8b859966d64f28b08be28dd

      Description

      As of qtbase 8ef86d05f199ebab216da43d5e0a9dc322b657b3 , the QPA implementation of QCursor::setPos() seems to be a no-op:

      void QCursor::setPos(int x, int y)
      {
          // Need to check, since some X servers generate null mouse move
          // events, causing looping in applications which call setPos() on
          // every mouse move event.
          //
          if (pos() == QPoint(x, y))
              return;
      }
      

      Looks like it was copied from the QWS implementation and the last line was removed.

      Some of Qt's autotests require a working QCursor::setPos(), so these will need to be adjusted for QPA if QCursor::setPos() is not implemented.

        Attachments

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

          Activity

            People

            • Assignee:
              kleint Friedemann Kleint
              Reporter:
              rmcgover Rohan McGovern (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes