Skip to content

Seems not support QtCore.Property #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kaluluosi opened this issue May 23, 2025 · 3 comments
Open

Seems not support QtCore.Property #13

kaluluosi opened this issue May 23, 2025 · 3 comments

Comments

@kaluluosi
Copy link

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)
@bluebird75
Copy link
Contributor

Thanks for the report.

Which IDE are you using ?

@bluebird75
Copy link
Contributor

I'll look into it but this looks difficult to address

@kaluluosi
Copy link
Author

Thanks for the report.

Which IDE are you using ?

VSCODE with pylance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants