> rowCount() will take an invalid model index for top level items, thus row() will
> return -1 and your rowCount() method will break
I'm not sure I understand that comment.
"model.rowCount()" (or more precisely: "model.rowCount( QModelIndex() )" ) should return the number of top-level items and you have two such items ("Boolean" and "Color").
Bookmarks