Hi there,

I use QStandardItemModel and want to add header text to my tableView. I thought I have to use "setHorizontalHeaderLabels", however "ui->tableView" doesn't give such a method.

the data for tableView are a child of my model (let say tableView shows children of "model->item(0,0)").

is it right to use:
model->setHeaderData(0, Qt::Horizontal, tr("Name"));


anyone can help?

Thanks,
Omid