channel->setModel(model);
model
->setData
(model
->index
(d,
1,
QModelIndex()),Channel
);
model
->setData
(model
->index
(d,
3,
QModelIndex()),dimension
);
model
->setData
(model
->index
(d,
5,
QModelIndex()),description
);
model = new QStandardItemModel();
channel = new QTableView(this);
channel->setModel(model);
model->setData(model->index(d,0,QModelIndex()), 0 );
model->setData(model->index(d,1,QModelIndex()),Channel);
model->setData(model->index(d,2,QModelIndex()),Unit);
model->setData(model->index(d,3,QModelIndex()),dimension);
model->setData(model->index(d,4,QModelIndex()),code);
model->setData(model->index(d,5,QModelIndex()),description);
To copy to clipboard, switch view to plain text mode
Bookmarks