[PyKDE] tableview and model
    Olivier Fournier 
    o.fournier at perigord.com
       
    Sat Feb 25 16:12:58 GMT 2006
    
    
  
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    PyKDE at mats.imk.fraunhofer.de
>http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
>
>
>  
>
    
    
More information about the PyQt
mailing list