I have a QTreeView set to use a QStandardItemModel, and I add some items to it like this:

Qt Code:
  1. QStandardItem *i1 = new QStandardItem("test item");
  2. QStandardItem *i2 = new QStandardItem("sub item");
  3. i1->appendRow(i2);
  4. m_tabModel->appendRow(i1);
To copy to clipboard, switch view to plain text mode 

"test item" appears, but "sub item" does not. What's wrong?