Yes, what u said is correct. I dont want tree structure. I want just table. I have set the Column count to 1. Only problem I am facing is its appending rows. Can u give me the lines of code for tableView without parentitem.
Yes, what u said is correct. I dont want tree structure. I want just table. I have set the Column count to 1. Only problem I am facing is its appending rows. Can u give me the lines of code for tableView without parentitem.
Can u give me the lines of code for listView or tableView using QStandardItremModel and QModelIndex
Docs for QStandardItemModel contain an example for building a tree or a table.
I want to use QModelIndex instead of QStandardItem. Can u help me
Qt Code:
model.insertRow(model.rowCount()); model.setData(idx, "foo", Qt::DisplayRole);To copy to clipboard, switch view to plain text mode
Thank u very much..Its working fine...
Last edited by mythili; 7th May 2013 at 13:45.
Bookmarks