QT - a programing question

Serge Lussier lusse at videotron.ca
Sun Feb 13 02:10:50 GMT 2000


Hi, this message is not about Kdevelop. It is a technical programing
question about QT.


I found that QListView and QListViewItem classes, used "as is " are
very convenient
for representing data in a hierachical/sublist manner.

I have a little problem implementing it.
I make a list of  QListViewItem which inserted into a QListView parent.
My problem is I can't remove a QListViewItem. I know how to do it
with the QListBox/QlistBoxItem classes.  ( QListBox::removeItem() member
).
But QListView has no such a member function. I digged into
the hierarchical classes in the docs without finding anything that looks
like
the removeItem() behaviour.
Do I have to call QListView::clear() or QListViewItem::Clear() and
rebuild the whole QListViewItem list?
Is it the only way I have to  remove just ONE QListViewItem  item ?


thank you .

Serge Lussier
ICQ#53409121






More information about the KDevelop mailing list