hello every one i have i have drag and dropped a tableview and write following code the code
Qt Code:
QList<QStandardItem *> row; for(int i =0;i<5 ;i++) { root->appendRow(row); } ui->tableView->setModel(listmodel);To copy to clipboard, switch view to plain text mode
but the problem is that my column get increaed ist they are 3 then 6 then 9 i want column to be 3 what should i do kindly help me
Added after 27 minutes:
it worked i just added root->clear()![]()
Bookmarks