|
|
Am Freitag, 4. März 2005 11:31 schrieb Olivier:
> Hi,
>
> I have a QListView with 3 columns. The 4th column, not visible, is used
> to store an index.
> What I want is to sort the QListView by the index (4th column) when I
> click on the the first column.
> There's no slot/signal when sorting a QlistView by clicking on a column.
> Do you have any idea how to do that ?
>
> thanks,
>
> Olivier
>
> --
> List archive and information: http://lists.trolltech.com/qt-interest/
Derive from QListViewItem and implement your own key(...) or compare()
or
yourListView->header()->disconnect(SIGNAL(clicked(int)),yourListView);
connect(yourListView->header(),SIGNAL(clicked(int)),yourWidget,SLOT(sortByColumn(int)));
--
Ilir Jano
HAGOS eG Industriestr. 62 fon: (+49) 711 78805-87
EDV-Programmierung 70565 Stuttgart fax: (+49) 711 78805-35
http://www.hagos.de Germany mailto:jano@xxxxxxxx
--
List archive and information: http://lists.trolltech.com/qt-interest/
|
|