[PyKDE] Clear Populated QlistView
star gazer
th1138x at yahoo.com
Sun Dec 29 17:01:01 GMT 2002
This list was filled with this snippet
...
c = con.cursor()
c.execute(query)
for x in c.fetchall():
item = QListViewItem(self.lv_search,None)
item.setText(0,self.tr(str(x[0])))
item.setText(1,self.tr(x[1]))
item.setText(2,self.tr(x[2]))
item.setText(3,self.tr(x[3]))
item.setText(4,self.tr(x[4]))
c.close()
con.close()
...
I would like to know how do I clear all the items from
the list properly
Star Gazer
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
More information about the PyQt
mailing list