在 P yQt4里,连接信号/信号槽 时 ,注意要把信号和信号槽写成C++风格的。
http://www.riverbankcomputing.com/pipermail/pyqt/2006-November/014652.html
亮点:
>
> self.connect(self.tray,
> QtCore.SIGNAL("activated(QtGui.QSystemTrayIcon.Trigger)"),
> self.on_trayclicked)
>
> # this doesn't work
>
> [...]
>
> What should i do to make it work as expected?
Signal arguments must be C++ signatures not Python ones, so
use "activated(QSystemTrayIcon::ActivationReason").
HxLauncher: Launch Android applications by voice commands