QT - a programing question

Benoit Cerrina benoit.cerrina at writeme.com
Tue Feb 15 20:05:05 GMT 2000


On dim, 13 fév 2000, you wrote:
> 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.
> 

But beware of the bug we found!
Ben



> -- 
> Regards,
> 
> jbb
> http://homepages.ihug.co.nz/~jbb
> ICQ: 60412209
-- 
Benoit Cerrina




More information about the KDevelop mailing list