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

Both QCheckBox.setCheckState(1) and setCheckState(Qt.PartiallyChecked) SUPPORTED!!

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Won't Do
    • P3: Somewhat important
    • None
    • 5.11.1
    • PySide
    • None
    • PySide2 5.11.1
      python 3.7.0
      Windows10

    • Windows

    Description

      If I use QCheckBox.setCheckState(1), it shows:

      TypeError: 'PySide2.QtWidgets.QTableWidgetItem.setCheckState' called with wrong argument types:
        PySide2.QtWidgets.QTableWidgetItem.setCheckState(int)
      Supported signatures:
        PySide2.QtWidgets.QTableWidgetItem.setCheckState(PySide2.QtCore.Qt.CheckState)
      

      https://doc.qt.io/qt-5/qt.html#CheckState-enum

      Value for checkstate is enabled in the original Qt document, it's convenient for us to store state in integer type, and it's Ok in PyQt5. So is it possible to enable ?

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            dearfad dearfad
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes