First of all - Thanks a lot for you help.
Hiding wasn´t a matter of the model, but the view. I didn´t set up any view, so i didn´t recognize this. I´ve hided the vertical Header of the QTableView and now all´s fine.
By using
int intVal = 89;
itemInt->setData(intVal, Qt::AlignRight);
model
->setData
(model
->index
(row,
0,
QModelIndex()), itemInt
);
int intVal = 89;
QStandardItem* itemInt = new QStandardItem();
itemInt->setData(intVal, Qt::AlignRight);
model->setData(model->index(row, 0, QModelIndex()), itemInt);
To copy to clipboard, switch view to plain text mode
"true" will be displayed and not 89.
Just wanted to thank you and start now to read. But any hints are stil wellcome.
Bookmarks