pythonqt icon indicating copy to clipboard operation
pythonqt copied to clipboard

Properties shadowing methods and missing functions

Open fbordignon opened this issue 4 years ago • 0 comments

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 avatar Apr 08 '21 13:04 fbordignon