Skip to content
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

Properties shadowing methods and missing functions #42

Open
fbordignon opened this issue Apr 8, 2021 · 0 comments
Open

Properties shadowing methods and missing functions #42

fbordignon opened this issue Apr 8, 2021 · 0 comments
Labels
question Further information is requested

Comments

@fbordignon
Copy link

Hi all,
I am new to the concept of pythonqt and find it fascinating. Great work!
I am working from the python side, so please keep that in mind.

I am trying to access QGraphicsWidget layout property from python but apparently cannot.
When I set it via setLayout(), it seems to work, but retrieving it is not working. I always get None from QGraphicsWidget.layout
The method layout() is not available, which if I understand correctly, the philosophy of pythonqt is to expose the property to be able to atribute a value to it from python and python methods cannot have the same name as properties.
But if I instantiate and do obj.layout = QGraphicsGridLayout() I get an error that layout is a pointer and cannot receive an object.
Can someone comment on this issues and help me understand it better? I am willing to help but I there are some things about python that I do not fully understand yet.

Other issues I've encountered
missing function: QMetaObject has no connectSlotsByName
Operators are not accessible via python. Example: QDataStream >>operator

Thanks

@fbordignon fbordignon changed the title Properties shadowing methods Properties shadowing methods and missing functions Apr 27, 2021
@mrbean-bremen mrbean-bremen added the question Further information is requested label Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants