Skip to content

Seems not support QtCore.Property #13

Description

@kaluluosi

Image

 from PySide6.QtCore import QObject, Property

 class MyObject(QObject):
     def __init__(self, startval=42):
         QObject.__init__(self)
         self.ppval = startval

     @Property(int)
     def pp(self):
         return self.ppval

     @pp.setter
     def pp(self, val):
         self.ppval = val

 obj = MyObject()
 obj.pp = 47
 print(obj.pp)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions