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. PushButtonMenuBug.zip
          4 kB
          Antti Yli-Tokola
        2. qtbug38550.zip
          1 kB
          Friedemann Kleint
        3. 0001-Add-function-tracer-to-Qt-4.patch
          5 kB
          Friedemann Kleint
        4. 0001-Add-function-tracer-to-Qt-5.patch
          5 kB
          Friedemann Kleint
        5. qtbug38550_4.log.gz
          4 kB
          Friedemann Kleint
        6. qtbug38550_5.log.gz
          17 kB
          Friedemann Kleint
        7. qtbug38550_diag4t.patch
          6 kB
          Friedemann Kleint
        8. qtbug38550_diag5t.patch
          12 kB
          Friedemann Kleint
        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