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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.12.2
    • 5.12.0, 5.12.1
    • PySide
    • None
    • Python 3.6
      PySide2 5.12.x
      Windows/Linux
    • 9a371088d6b8e8a0986a30a8dfb0076669275103 (pyside/pyside-setup/5.12)

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes