I am trying to inherit QAbstractItemModel and am having problems implementing 
parent().

In order to do it correctly to represent a tree structure, I am storing a 
QPersistentModelIndex in my tree node.

However, parent needs to return a plain QModelIndex.

AFAICS, this is how you convert:

QPersistentModelIndex::operator const QModelIndex & () const

Cast operator that returns a const QModelIndex&.

But how can I do that from python?
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to