[Qt-interest] How to reverse the order of the rows in a QTableWidget
Andre Somers
andre at familiesomers.nl
Fri Sep 17 11:58:13 CEST 2010
Op 17-9-2010 6:26, Bijay Panda schreef:
> Hi All,
>
> I am working on QT 4.5.2 on linux.I want to reverse the order of rows
> in my QTableWidget on a pushButton click outside the QTableWidget (
> means 1-10 to 10-1).This is the ay I am doing..But its not
> working..Actually it's unable to remove the cellWidget.
>
The obvious answer to modify the order of your items would be to sort them.
Does QTableWidget::sortItems() help you?
André
More information about the Qt-interest-old
mailing list