2016-03-19 5 views

Antwort

0

ich gerade gefunden ...

QStandardItem *parentItem = m_model->invisibleRootItem(); 
QStandardItem *item = new QStandardItem("new file"); 
item->setEditable(true); 
parentItem->appendRow(item); 
ui->treeView->edit(item->index());