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

Unknown keyword args on constructors silently ignored

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 5.15.2
    • 5.14.0, 5.14.2, 5.14.2.1
    • PySide
    • None
    • Linux/X11, Windows
    • b6e57864e5f4d470196f7425c631981de6d1aeb4 (pyside/pyside-setup/dev) d55a0ffb6b7ed154f5971c71b29621b532a394f5 (pyside/pyside-setup/6.0) fca3aada26d4ec3f9431d2983bf7135ecb0cb547 (pyside/tqtc-pyside-setup/5.15) 3d137f7810 (pyside/tqtc-pyside-setup/5.15.5)

      Several classes, including QColor, QPainter, QImange, QPoint, do not complain when their ctor is called with an unknown keyword argument.

      This is for example annoying for QColor(r,g,b,a, alpha=0), which is accepted by PyQt5, but works differently in PySIde2 (which uses name "a" for alpha).

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

            ctismer Christian Tismer
            yann Yann Dirson
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: