使用pyside的QComboBox,我知道如何连接信号并使用它发送的索引。但是unicode参数怎么办?如果我更喜欢连接到想要来自组合框的字符串的东西,是否可能?
From: http://www.pyside.org/docs/pyside/PySide/QtGui/QComboBox.html#PySide.QtGui.QComboBox
所有三个信号都有两个版本,一个带有PySide.QtCore.QString参数,另一个带有int参数。信号
def activated (arg__1)
def activated (index)
PySide.QtGui.QComboBox.activated(index) 参数: index – PySide.QtCore.int
PySide.QtGui.QComboBox.activated(arg_1) 参数: arg_1 – unicode
编辑:一些代码。
le = ComboBoxIpPrefix()
le.currentIndexChanged.connect(lambda x....)
这段代码给出了索引。问题是如何获取文档中提到的Unicode字符串。