Are you sure each level of the model has the same number of columns? If you use QStandardItemModel it is important to call setColumnCount() with the same value for each level. For a custom model your columnCount() should return the same value for each index.
Bookmarks