hello list,

i have tried in vain to get my head around this problem. (for the lack
of time please accept this rudimentary code)

view = QTableView()
view.setModel(QStandardItemModel())

print view.model() <---- returns None

but

view = QTableView()
model = QStandardItemModel()
view.setModel(model)

print view.model() <---- correctly prints
<PyQt4.QtGui.QStandardItemModel object at ...>

why is that happening?

-- 
paul victor noagbodji
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to