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

    • Bug
    • Resolution: Done
    • 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)

    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

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