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

QHoverEvent::globalPos() returns wrong value when entering the widget

XMLWordPrintable

      QHoverEvent::globalPos() returns wrong value of QPointF(-1,-1) for QEvent::HoverEnter. This has most probably been introduced by fix of QTBUG-100324.

      The problem lies in QApplicationPrivate::dispatchEnterLeave:

      QHoverEvent he(QEvent::HoverEnter, localPos, QPointF(-1, -1), globalPos,
                     QGuiApplication::keyboardModifiers());
      

      should have been

      QHoverEvent he(QEvent::HoverEnter, localPos, globalPos, QPointF(-1, -1),
                     QGuiApplication::keyboardModifiers());
      

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

            srutledg Shawn Rutledge
            mirom Miro Mikšík
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes