On Samstag 27 November 2010, Ian wrote:
> So here are the model and view:
you could try to add checks to your methods like
in data():
if index.isValid():
if role == Qt.DisplayRole:
data() will also be called with role == Qt.CheckStateRole
in which case your code returns True
or in headerData:
if role == Qt.DisplayRole and orientation == Qt.Horizontal:
return ...whatever...
else:
return QVariant()
--
Wolfgang
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt