QT - a programing question
jbb
jbb at ihug.co.nz
Sun Feb 13 02:20:10 GMT 2000
On Sun, 13 Feb 2000, you wrote:
> 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 ?
delete the item is the only way AFAIK.
--
Regards,
jbb
http://homepages.ihug.co.nz/~jbb
ICQ: 60412209
More information about the KDevelop
mailing list