[PyQt] QMdiArea's subWindowActivated signal not being fired.

Phil Thompson phil at riverbankcomputing.co.uk
Mon Jul 30 17:47:19 BST 2007


On Monday 30 July 2007 5:16 pm, charles chen wrote:
>    We're having trouble seeing the QMdiArea's subWindowActivated signal.
>
>    Is this related to the "signal/slot handling fix." from 7/16-7/20?
> http://www.riverbankcomputing.com/Downloads/Snapshots/PyQt4/ChangeLog
>
>    We're using:
> sip-snapshot-20070612.zip
> PyQt-win-commercial-4-snapshot-20070612.zip
>
> The relevant code:
>
>    self.__workspace__ = QMdiArea()
>    QObject.connect( self.__workspace__, SIGNAL('subWindowActivated (
> QMdiSubWindow * window )'), self.handleSubwindowActivated )
>
>    def handleSubwindowActivated(self, ignore=None ):
>         ...
>
> Here's a link to the Qt docs of the signal:
> http://doc.trolltech.com/4.3/qmdiarea.html#subWindowActivated

Don't pass argument names to SIGNAL().

Phil


More information about the PyQt mailing list