[PyQt] signals and dialogs

Scott Frankel frankel at circlesfx.com
Tue Mar 2 19:45:09 GMT 2010

Hi all,

How does one connect dialogs to a parent object to receive any signals  
they may emit?

This doesn't work:
		dialog = Foo()
		self.connect(dialog, QtCore.SIGNAL("foo(string)"), self.printString)

The attached code sample creates a dialog that emits a signal on  
init().  The main window tries to connect the dialog, receive the  
signal, and call its assigned slot.  Seems like it should work, but of  
course it doesn't.

I'm sure I'm overlooking something simple.  Thanks in advance!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signalTest.py
Type: text/x-python-script
Size: 1293 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100302/bf74a87f/attachment-0001.bin>
-------------- next part --------------

More information about the PyQt mailing list