Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
here is a simple MXS snippet:
wd = python.import "PySide2.QtWidgets"
v = wd.QHBoxLayout()
b = wd.QLabel()
v.addWidget b
v.itemAt 0
last line returns QWidgetItem as expected, and count of the layout items must be 1
but:
v.count()
fails with
-- Type error: Call needs function or class, got: 0
I tried invokeMethod using QMetaObject, I tryied to find the "count" method using indexOfMethod... nothing works.
Is there anything else I missed?
thanks,
... and ... of course I tried to call "count" as a property:
v.count
it's doing something other and returns always 0. I guess this "count" is a part of PyWrapperBase which screws the normal method behavior.
Solved! Go to Solution.