[PyQt] Connecting to a QItemModel

Arthur Pemberton pemboa at gmail.com
Sat Mar 7 00:16:20 GMT 2009


How does one connect to the signals of a QItemModel?

I tried the following, but it didn't work:

self.connect(
			self.model,
			QtCore.SIGNAL('itemChanged(QStandardItem 8)'),
			self.on_model_itemChanged
		)

and

self.connect(
			self.model,
			QtCore.SIGNAL('itemChanged(QStandardItem &)'),
			self.on_model_itemChanged
		)

Neither worked.

-- 
Fedora 9 : sulphur is good for the skin
( www.pembo13.com )


More information about the PyQt mailing list