I have a QTreeView set to use a QStandardItemModel, and I add some items to it like this:
Code:
i1->appendRow(i2); m_tabModel->appendRow(i1);
"test item" appears, but "sub item" does not. What's wrong?
Printable View
I have a QTreeView set to use a QStandardItemModel, and I add some items to it like this:
Code:
i1->appendRow(i2); m_tabModel->appendRow(i1);
"test item" appears, but "sub item" does not. What's wrong?
I found the problem, I needed to call expandAll() on the view.