コード例 #1
0
 def setModelData(self, editor, model, index):
     idx = editor.currentIndex()
     value = editor.itemData(idx).toPyObject()
     model.setData(index, QtCore.QVariant(value), QtCore.Qt.EditRole)
コード例 #2
0
	def setModelData(self, editor, model, index):
		idx = editor.currentIndex()
		value = editor.itemData(idx).toPyObject()
		self.item.path[index.row()].ucstep = value 
		model.setData(index, QtCore.QVariant(value), QtCore.Qt.EditRole)
コード例 #3
0
 def setModelData(self, editor, model, index):
     idx = editor.currentIndex()
     value = editor.itemData(idx).toPyObject()
     self.item.path[index.row()].ucstep = value
     model.setData(index, QtCore.QVariant(value), QtCore.Qt.EditRole)
コード例 #4
0
 def setModelData(self, editor, model, index):
     idx = editor.currentIndex()
     value = editor.itemData(idx).toPyObject()
     model.setData(index, QtCore.QVariant(value), QtCore.Qt.EditRole)