PDA

View Full Version : Iterate the QListWidget



vishal.chauhan
26th February 2007, 04:45
Hi All,


I m using Qt 4.2.2 on my Intel Mac.

I have a ListWidget and some Items in that.
I want to Itearte this listWidget that is I want each item of QListWidget satisfy a perticular condition so I need each Item of List Widget .


If any one knows then plz help me.

Thanks.

wysota
26th February 2007, 07:51
Either use QListWidget::findItems() or:


QListWidget *list;
for(int i=0;i<list->count;i++){
QListWidgetItem *item = list->item(i);
doSomething(item);
}