Qt-interest Archive, October 1998
QListView NOT sorted
Message 1 in thread
Hi Qt-users!
I tried out to implement a tree with the qlistview-widget and inserted
some nodes into that tree.
What's a bit bad is that the listview does sort as default for
the first column. What i want is that the nodes in the tree are not
sorted at all - i want to decide where the node has to appear.
example:
name type
anode x
bnode x
bsubnode y
asubnode a
bsubnode should be before asubnode - this can be done if the qlistview
widget does not sort. Can i stop it from sorting my nodes?
Bye
Bernd
Message 2 in thread
<SNIP>
<INCLUDE FROM DOCU OF QLISTVIEW>
void QListView::setSorting ( int column, bool ascending = TRUE ) [virtual]
Set the list view to be sorted by column and to be sorted in ascending order if
ascending is TRUE or descending order if it is FALSE.
If column is -1, sorting is disabled.
</INCLUDE FROM DOCU OF QLISTVIEW>
;)
Matthias
+--+--+-+-+-+-+------------------------------------------------------------+
| | |_|_|_|_| Fraunhofer Institute for Computer Graphics |
|__|__|_|_|_|_| Dept.: Visualization and Virtual Reality |
| | |_|_|_|_+---------------------------+--------------------------------+
|__|__|_|_|_|_| Matthias Stiller | Tel.: ++49-6151-155-285 |
| _ _ | Rundeturmstr. 6 | Fax.: ++49-6151-155-196 |
| | / _ | \ | 64283 Darmstadt | email: stiller@igd.fhg.de |
| | \_/ |_/ | Germany | http://www.igd.fhg.de/~stiller |
+-------------+---------------------------+--------------------------------+
Windows 98 supports real multitasking - it can boot and crash simultaneously
Message 3 in thread
Hi Qt-Gods!
Ok ok ok - i know - RTFM and so on!
I'm still using 1.40 and its new in the documentation for 1.41!
Thats it - thanks for all comments - the main thing is that it will
work now!
Bye
Bernd