[PyKDE] connecting to connectionStateChanged in QUrlOperator
Phil Thompson
phil at riverbankcomputing.co.uk
Thu Jul 20 09:51:45 BST 2006
On Thursday 20 July 2006 2:44 am, Daryl Dusheiko wrote:
> I am using the QUrlOperator class and am trying to connect to the
> connectionStateChanged signal. When I run the code I get the following
> error.
>
> File "DSBUpgradeDialog.py", line 35, in __init__
> self.connect(self.ftp, SIGNAL('connectionStateChanged(int, QString
> &)'), self.__ConnectionStateChanged)
> RuntimeError: Signal has wrong argument types for slot
>
> My code looks as follows:
> self.ftp = QUrlOperator()
> self.connect(self.ftp, SIGNAL('connectionStateChanged(int, QString &)'),
> self.__ConnectionStateChanged)
>
> I am using using PyQt version 3.3.4 on Linux and 3.3.1 on Windows.
>
> Please could someone help resolve this problem.
You are using the wrong signal signature - it's const QString &.
Phil
More information about the PyQt
mailing list