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

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Fixed
    • Affects Version/s: 5.12.0
    • Fix Version/s: 5.12.1
    • Component/s: PySide
    • Labels:
      None
    • Platform/s:
      All
    • Commits:
      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

            Assignee:
            crmaurei Cristian Maureira-Fredes
            Reporter:
            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