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

[REG 4->5] QPushButton with QMenu stays in pressed state even focus is moved to another button

XMLWordPrintable

    • bf9970d40bf0c99a75b59674fa55bc859291d9ba (stable, 6.5.2014, 5.3.1)

      When QPushButton is used with QMenu it doesn't loose the pressed state even another QPushButton is clicked.

      This issue can be reproduced in Qt5 but works fine in Qt 4.8.5.
      I made a simple app for demonstrating the issue.

      Steps to reproduce:

      Run qtbug38550.zip preferably with -style windows (clearly shows pressed state)

      • Click on Button 0, menu 0 opens
      • Click on Button 1: menu 0 closes, menu 1 opens
      • Note Button 0 is still in 'pressed' state

        1. qtbug38550.zip
          1 kB
        2. qtbug38550_diag5t.patch
          12 kB
        3. qtbug38550_diag4t.patch
          6 kB
        4. qtbug38550_5.log.gz
          17 kB
        5. qtbug38550_4.log.gz
          4 kB
        6. PushButtonMenuBug.zip
          4 kB
        7. 0001-Add-function-tracer-to-Qt-5.patch
          5 kB
        8. 0001-Add-function-tracer-to-Qt-4.patch
          5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kleint Friedemann Kleint
            anylitok Antti Yli-Tokola (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes