[PyKDE] QListView bugs (...)

Thierry Jouve jouve at esrf.fr
Mon Jul 1 11:29:00 BST 2002


Hi,

I investigate a little bit more, and I've found that a call to
triggerUpdate() (on the QListView object) and to processEvents() (on the
QApplication object) resolve the problem...

But :
  - it's not very well to call "triggerUpdate" after each update on a
QListView
  - it's strange that only the second call has a problem, whereas the
third works fine !!!


Concerning QListCiewItem bugs, here is a script that demonstrate the
problem :
#!/usr/bin/env python

from qt import *

if __name__ == "__main__" :

   import sys
   qa = QApplication(sys.argv)

   lv = QListView()
   lv.show()
   lv.addColumn("Items")

   print "Before inserting"

   qlvi = QListViewItem(None, "Item1")

   print "After inserting"

   lv.insertItem(qlvi)


   qa.setMainWidget(lv)
   qa.exec_loop()


Regards,

--
   Thierry JOUVE

   BLISS GROUP - ESRF
   Mail : jouve at esrf.fr, Office : 155b, Tel : 29-46




More information about the PyQt mailing list