[PyQt] setData in QTableView

Vadym 699096 at gmail.com
Mon Apr 11 14:34:59 BST 2011


I try to insert some data in my QTableView via other method with code:

self.emsTableModel.setData((self.emsTableModel.index(0, 2)),

this code works fine and, of cource, change content of cell with row
#1 and column#3 to 111

BUT if I try do same but from other module (other file) with code:

import trianon
trianon.emsTableModel().setData((trianon.emsTableModel().index(0, 2)),

becomes nothing... nor error, nor success

where is mistake?

Vadym Honcharuk, nic-handle:vh20-uanic

More information about the PyQt mailing list