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

QMouseEvent is incorrect in special case of QWidget::mouseMoveEvent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P4: Low P4: Low
    • None
    • 5.0.2
    • None
    • Windows 7 Professional, Service Pack 1, 64 bit
      Qt Creator 2.7.1 (32 bit)

      I have problem during drag&drop of graphics object in QGLWidget. The issue is that QMouseEvent of QWidget::mouseMoveEvent is incorrect when:

      1) I press the object by left mouse key without move and release,
      2) switch to another window by alt+tab,
      3) release left mouse key and move,
      4) switch back to my application by alt+tab,
      5) mouse move (no mouse key is pressed)

      This sequence of actions causes that QWidget::mouseMoveEvent slot is called and QMouseEvent::buttons() contains Qt::LeftButton, which is incorrect! In buttons() should be Qt::NoButton, or am I wrong?

      Thanks very much for reply

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

            Unassigned Unassigned
            marmik Marek Mikes
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes