The Jambi tree examples that I've found use the file system as the model
and relies on the filesystem to provide the parent-child relationship,
which doesn't help me.
I have a flat list of objects in a QAbstractItemModel. I use this model
with other views so I can't just extend QTreeModel instead
Hi,
have a look here :
http://developer.qt.nokia.com/doc/qt-4.8/model-view-programming.html#model-classes
AFAIR jambi breaks with the c++ in some points concerning the modelindex.
But the structure is still the same.
If I understand you correctly, you want to change the internat structure of
you
Yes, I've read the documentation several times but it's too high level. I
forgot to mention in my original email that I am already using a proxy
model. I think I have most of it figured out, except for how to implement
the parent(QModelIndex child) method. I can't determine what the child's
You'll have to do the bookkeeping about hierarchy yourself, as nearly all
of qmodelindex's methods will access the model again. The problem is that
the c++ implementation (of the qtreemodel) uses
QModelIndex::internalPointer to retrieve the information which internal
object is linked to that specif
joshhigh...@gmail.com wrote:
> Yes, I've read the documentation several times but it's too high level.
> I forgot to mention in my original email that I am already using a proxy
> model. I think I have most of it figured out, except for how to
> implement the parent(QModelIndex child) method. I can
I'll see what I can do. In my limited experience, Jambi is generally a very
thin wrapper on the C++ APIs. Since the child index is created by calling
the index(row,column,parent) method, I think the parent of the child
_should_ already be known and populated (but isn't in my case).
I have v
Hi,
On Thursday 09 February 2012 18:04:44 joshhigh...@gmail.com wrote:
> I'll see what I can do. In my limited experience, Jambi is generally a very
> thin wrapper on the C++ APIs. Since the child index is created by calling
> the index(row,column,parent) method, I think the parent of the child
>