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

Declaring a (Q)Property as "constant" does not work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.12.0, 5.12.1
    • Fix Version/s: 5.12.2
    • Component/s: PySide
    • Labels:
      None
    • Environment:
      Python 3.6
      PySide2 5.12.x
      Windows/Linux
    • Commits:
      9a371088d6b8e8a0986a30a8dfb0076669275103 (pyside/pyside-setup/5.12)

      Description

      Since PySide2 5.12.0, declaring a Property as constant using constructor parameter "constant=True" does not work anymore.

      Attached is a minimal test case that shows that the corresponding QMetaProperty returns False when calling "isConstant()" (worked as expected before 5.12.0).

      This is noticeable when using constant properties from QML, which raises the "depends on non-NOTIFYable properties:" warning.

        Attachments

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

          Activity

            People

            • Assignee:
              crmaurei Cristian Maureira-Fredes
              Reporter:
              yann-lty Yann Lanthony
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes