PDA

View Full Version : get all QListWidgetItem*(visible and hidden )



Levon Nikoghosyan
24th October 2006, 16:34
Please help me to find interface which returns all items af QlistWidget hidden and not
thanks in advance

jpn
24th October 2006, 16:46
I'm afraid there's no convenience function/class (such as QTreeWidgetItemIterator for QTreeWidget) for QListWidget and you have to iterate through the items in the list widget yourself and test each items visibility.

wysota
24th October 2006, 22:02
One could use QListWidget::findItems() to retrieve all the elements. It should work if provided a regexp of ".*". Of course to have only the visible items, one has to iterate through the list and test the visibility.