Hi,
I'm fairly new to both Python and Qt so please bare with me.
I have a QListView with a number of columns. In order to filter the
output I iterate using QListViewItemIterator looking for the string
entered by the user (filterString). Currently I do it this way:
it =
On Tuesday 16 January 2007 18:57, Tina I wrote:
I have a QListView with a number of columns. In order to filter the
output I iterate using QListViewItemIterator looking for the string
entered by the user (filterString). Currently I do it this way:
[Reformatted code for quoting purposes]
it
David Boddie wrote:
When it.current() returns None. You can rewrite what you already
have like this:
it = QListViewItemIterator(self.authListView)
while it.current():
item = it.current()
if item.text(0).contains(filterString) or \
item.text(1).contains(filterString)