Thanks
void QTableWidget::sortItems ( int column, Qt
::SortOrder order
= Qt
::AscendingOrder )
void QTableWidget::sortItems ( int column, Qt::SortOrder order = Qt::AscendingOrder )
To copy to clipboard, switch view to plain text mode
The above function indeed sorts items. I was a bit unclear about whether it sorts rows based on columns or vice versa? It can only sort the rows one column at time which means that the table has the be sorted once for each column (very many times). Isn't this a bit slow? If rows could be converted into strings then rows could be sorted as it they were simple words (although they consis of numbers) using string coparison and the result could be a bit faster? Or am I wrong?
Thanks for any ideas you might have!
Bookmarks