Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
1.0.8, 1.1.0
-
None
-
OS: Linux Fedora 16
Python version: 2.7
Qt version: 4.8.4
PySide versions: 1.1.0 and 1.0.8
Description
My python object that has some definitions like a list but is much bigger than just that.
The object contains __len__(), __contains__(), __getitem__().
QSortProxyFilterModel.data(index, Qt.UserRole) returns the object as [] instead of the expected Asset type object.
Tested with other objects that contain no __getitem__() etc. They work as expected.
After converting __getitem__() to a normal method like get_asset() fixes this issue. However I prefer __getitem__().
Attachments
Issue Links
- relates to
-
PYSIDE-726 If you give a QComboBox a python instance that implements the sequence protocall, you get a list back
- Closed