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

Details

    • bf9970d40bf0c99a75b59674fa55bc859291d9ba (stable, 6.5.2014, 5.3.1)

    Description

      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

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes