Hi again,<br><br>As David said, I shouldn't use the QPersistentModelIndexes, so I changed code a bit. I think this code is easier to read but has some "worse" points.<br><br>1. On insertRow it is necessary to do an append for every QList that I have, so some memory is wasted, since not all jobs will use all properties. I mean, stating won't use progress, and some jobs won't use elapsedtime, or so.
<br><br>2. Since the delegate will have to draw different things depending on what properties were set and what not (it won't draw the progress bar if any progress was setted, because we suppose is not needed), is necessary to add "dummy" default values to identify if they were set or not, when on the other code, we just checked if the QHash had that role added or not.
<br><br>Anyway this code seems to be much for clean, so I think is the best one, as David said.<br><br>I would like you to point me what you think is wrong ATM (before continuing the work). Take in count there are not lots of roles added, since this was for testing, and it worked.
<br><br>Thanks,<br>Rafael Fernández López.<br>