[PyKDE] Problem with QTable and QTableItem with PyQT-2.4 and PyQT-3.1

Andrew Dalke adalke at mindspring.com
Sat Apr 20 01:58:45 BST 2002


Terry Barnaby:
> I am trying to use the QTable and QTableItem classes and seem to
> have a problem.

Hmm.  This works fine for me under 3.0.3.

>>> from qt import *
>>> from qttable import *
>>> app = QApplication([])
>>> t = QTable(5, 10)
>>> t.show()
>>> t.setText(0, 0, "Hello")
>>> i = QTableItem(t, QTableItem.OnTyping, "HH", QPixmap())
>>> print i.text()
HH
>>> t.setItem(0, 1, i)
>>> app.exec_loop()

					Andrew





More information about the PyQt mailing list