Hi Kode,
I don' know about dataadapter, datareader or dataset in .net but maybe you could have a look at the following examples.
models have there own sorting capabilities without using SQL syntax :
model->setTable("employee");
model->setSort(employee_name, Qt::AscendingOrder);
QSqlRelationalTableModel *model = new SqliteRelationaltableModel(this);
model->setTable("employee");
model->setSort(employee_name, Qt::AscendingOrder);
To copy to clipboard, switch view to plain text mode
QTableView and headers can help you out also :
headerH->setMovable(true);//DRAG AND DROP IS POSSIBLE NOW
headerH->setClickable(true);
headerH->setSortIndicator(employee_name,Qt::AscendingOrder);
headerH->setSortIndicatorShown(true);
tableview->setSortingEnabled(true);
QHeaderView *headerH = tableview->horizontalHeader();
headerH->setMovable(true);//DRAG AND DROP IS POSSIBLE NOW
headerH->setClickable(true);
headerH->setSortIndicator(employee_name,Qt::AscendingOrder);
headerH->setSortIndicatorShown(true);
tableview->setSortingEnabled(true);
To copy to clipboard, switch view to plain text mode
Hope this helps finding more information in the docs.
Cheers,
everall
Bookmarks