Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-104

QGroupBox clicked signal doesn't pass checked argument

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 1.1.0, dev
    • Fix Version/s: 5.9
    • Component/s: PySide
    • Labels:
    • Environment:
      Windows 7 64-bit, Qt 4.7.4 32-bit, PySide 1.1.1 32-bit, Python 2.7.3 32-bit
    • Commits:
      095fd339a238fe2ad5ec6080119882436d95fde3

      Description

      The clicked signal of QGroupBox has an optional checked argument that is used when the group box is setCheckable(True) to pass the state of the check box. The attached example can be used to see that PyQt passes the correct value of checked but PySide does not pass the checked argument.

      The bug is easily worked around by adding the line

      checked = self.gb.isChecked()

      at the top of your slot (assuming you know the identity of the group box or else use a sender call).

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              • Assignee:
                crmaurei Cristian Maureira-Fredes
                Reporter:
                deadparrot Stuart Mentzer
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes