擅长:python、mysql、java
<p>connect语句应如下所示:</p>
<pre><code>QtCore.QObject.connect(self.ui.comboBox, QtCore.SIGNAL("currentIndexChanged()"), self, QtCore.SLOT("comboBoxIndexChanged()))
</code></pre>
<p>或者</p>
^{pr2}$
<p>更简单的形式是:</p>
<pre><code>self.ui.currentIndexChanged.connect(comboBoxIndexChanged)
</code></pre>