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

QAbstractButton - released signal emitted before pressed signal

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.4.0 RC
    • 5.3.2
    • QPA: EGLFS
    • None
    • Linux
      EGLFS
      tslib

      QAbstractButton::mousePressEvent has the following code:

      repaint(); //flush paint event before invoking potentially expensive operation
      QApplication::flush();
      d->emitPressed();
      

      When using the UNIX event dispatcher, QApplication::flush() may cause a release mouse event to be processed and result in the released() signal being emitted before the pressed() signal.

        1. backtrace.txt
          15 kB
          Jonathan Liu
        2. mouse_event_test.zip
          1 kB
          Jonathan Liu
        For Gerrit Dashboard: QTBUG-42079
        # Subject Branch Project Status CR V

            lagocs Laszlo Agocs
            net147 Jonathan Liu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes