[PyQt] QPersistentModelIndex problem
ralsina at kde.org
Sat Feb 7 03:32:12 GMT 2009
I am trying to inherit QAbstractItemModel and am having problems implementing
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PyQt