Пример #1
0
 def setData(self, column, value, role=Qt.EditRole):
     if self.scene() is None :
         return False
     
     self.scene().setData(self.getIndex(column), QtCore.QVariant(value), role)
Пример #2
0
 def data(self, column, role=Qt.DisplayRole):
     if self.scene() is None :
         return QtCore.QVariant()
     
     return self.scene().data(self.getIndex(column), role)