On Monday, 19 November 2012 19:25:25 CEST, Alex Strickland wrote:
> My attempts don't work, can anyone say why?

What "doesn't work" mean here? It isn't obvious from the code what you've 
actually tried to do with the model. Did you run modeltest [1] on it? Did you 
just fed it to a QTreeView? What was the result?

It isn't realistic to expect that people on this list will debug your code for 
you. My advice is to go through the tree example once again, making sure you 
understand what all branches in all functions do. When you test your model, 
start with some trivial tests (Is rowCount(QModelIndex()) okay? Can I get any 
index? ...), comparing the actual values obtained from your functions with the 
expected values. If they don't match, step through your code with a debugger to 
see what it's doing wrong. If you have a specific question, please go ahead and 
ask.

With kind regards,
Jan

[1] http://qt-project.org/wiki/Model_Test
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to