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
    • Status: Closed
    • P4: Low
    • Resolution: Fixed
    • 5.12.0
    • 5.12.1
    • PySide
    • None
    • All
    • b0c04069b18f58696c6a87e02c8854628eb9988d

    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