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

QGroupBox clicked signal doesn't pass checked argument

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.9
    • 1.1.0
    • PySide
    • Windows 7 64-bit, Qt 4.7.4 32-bit, PySide 1.1.1 32-bit, Python 2.7.3 32-bit
    • 095fd339a238fe2ad5ec6080119882436d95fde3

      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).

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes