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

QAbstractButton - released signal emitted before pressed signal

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: