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

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

24th October 2006, 17: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.

24th October 2006, 23: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.