我在 Python 中的对象编程方面没有那么强,所以我不得不寻求帮助。
我以这种方式在表格内创建了一个组合框(它有效):
self.comboBoxEng = QtGui.QComboBox()
self.tableWidget_1.setCellWidget(row,column,self.comboBoxEng)
问题是:
如何currentIndex()
从用作的组合框中获取属性(例如...)tableWidgetItem
?
我在 Python 中的对象编程方面没有那么强,所以我不得不寻求帮助。
我以这种方式在表格内创建了一个组合框(它有效):
self.comboBoxEng = QtGui.QComboBox()
self.tableWidget_1.setCellWidget(row,column,self.comboBoxEng)
问题是:
如何currentIndex()
从用作的组合框中获取属性(例如...)tableWidgetItem
?