It's what I 've write in first but it's doen't work
model is a locale  variable for my __init__ classe.

Maybe... I understand Phil explications like this...

David Boddie a écrit :

On 25 Feb 2006 11:26:13, Olivier Fournier wrote:

thank's for your help

...
       self.model = QtGui.QStandardItemModel(3,3)
       self.TVTable.setModel(self.model)
...


is more correct...

You should also be able to do this:

   model = QtGui.QStandardItemModel(3,3,self)
   self.TVTable.setModel(model)

In this case, Qt will take care of the model instead of Python because self
is being passed as the parent object to the QStandardItemModel. Of course,
the instance represented by self has to be inherit QObject for this to work.

David

_______________________________________________
PyKDE mailing list    [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde



_______________________________________________
PyKDE mailing list    [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to