how to get the last listviewitem in a listview?

Paul Curtis plc at rowley.co.uk
Mon Apr 15 17:56:41 BST 2002


Beware that itemBelow() does just that: if a branch is visually closed,
itemBelow() won't report the first child of the item as the next
below...

Just to warn you...

-- Paul.

> -----Original Message-----
> From: Dung Patrick [mailto:dkt at digitalme.com] 
> Sent: 15 April 2002 17:41
> To: jwebster at olemiss.edu
> Cc: qt-interest at trolltech.com; kdevelop at kdevelop.org
> Subject: Re: Re: how to get the last listviewitem in a listview?
> 
> 
> i use qt 2.3.1, no such method...
> 
> -----Original Message-----
> From: Jeremy Webster <jwebster at olemiss.edu>
> To: dkt at digitalme.com, qt-interest at trolltech.com, 
> kdevelop at kdevelop.org
> Date: Mon, 15 Apr 2002 09:40:54 -0400
> Subject: Re: how to get the last listviewitem in a listview?
> 
> Hey, how about
> 	listView->lastItem();
> :)
> 
> 
> On Monday 15 April 2002 01:01 am, Dung Patrick wrote:
> > can i use this method?
> >
> > QListViewItem * item1 = listView->firstChild();
> >
> > while ( (item1) && (item1->itemBelow() ) {
> >     item1=item1->itemBelow();
> > }
> 
> --
> List archive and information: http://lists.trolltech.com/qt-interest/
> 

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list