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

DeprecationWarning QDialogButtonBox StandardButton

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.14.1
    • PySide
    • None
    • Python 3.8

    Description

      With Python 3.8 the following warning is generated whenever I use a member from the
      QDialogButtonBox.StandardButton enum, e.g. QDialogButtonBox.StandardButton.Ok:

       DeprecationWarning: an integer is required (got type PySide2.QtWidgets.QDialogButtonBox.StandardButton). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
       buttonbox = QDialogButtonBox(QDialogButtonBox.Ok |
      

      This warning is specific to Python 3.8 (it does not occur with earlier Python versions such as 3.7) and PySide2 (it does not occur with PyQt5 on Python 3.8).

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            cle1109 Clemens Brunner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes