[PyQt] QtCore.QMetaObject.connectSlotsByName(obj) question

Bruno Tikami brunotikami at gmail.com
Tue Oct 14 20:34:26 BST 2008


Hi all,

I'm trying to get pyuic module to work with Qt4Designer .ui files but I'm
facing some problems to connect the slots.

Here's what I have:

[login_ui.py]
class LoginDialog():
  ...
  self.okButton = QtGui.QPushButton(Dialog)
  self.okButton.setObjectName("okButton")

and, in another python module, I have the slots:
[login_slots.py]

def on_okButton_clicked(self):
  print "Hello World"

how can I connect the on_okButton_clicked slot to the LoginDialog's signals
? Is it possible?

thanks!

Bruno Tikami
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20081014/57571f7e/attachment.html


More information about the PyQt mailing list