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

QProgressDialog.setCancelButton() Is documented to accept 0, but does not.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4: Low
    • 5.12.1
    • 5.12.0
    • PySide
    • None
    • All
    • b0c04069b18f58696c6a87e02c8854628eb9988d , 825b5272e (dev)

    Description

      TypeError: 'PySide2.QtWidgets.QProgressDialog.setCancelButton' called with wrong argument types:
      PySide2.QtWidgets.QProgressDialog.setCancelButton(int)
      Supported signatures:
      PySide2.QtWidgets.QProgressDialog.setCancelButton(PySide2.QtWidgets.QPushButton)

       

      Workaround:

      Using None as Argument appears to give the expected result.

       

      Either Update the Documentation to say None instead of 0, or allow 0.

       

      Attachments

        For Gerrit Dashboard: PYSIDE-903
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes