[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] connecting to connectionStateChanged in QUrlOperator
From: Daryl Dusheiko <daryld () magtech ! com ! au>
Date: 2006-07-20 23:39:56
Message-ID: 44C0144C.5050803 () magtech ! com ! au
[Download RAW message or body]
[Attachment #2 (text/html)]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks Phil, it works now. The Pydoc 2.0 I'm using does not have is as
const, but I see the online version does.<br>
<br>
<br>
Phil Thompson wrote:
<blockquote cite="mid200607200951.45222.phil@riverbankcomputing.co.uk"
type="cite">
<pre wrap="">On Thursday 20 July 2006 2:44 am, Daryl Dusheiko wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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.
</pre>
</blockquote>
<pre wrap=""><!---->
You are using the wrong signal signature - it's const QString &.
Phil
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit <a class="moz-txt-link-freetext" \
href="http://www.messagelabs.com/email">http://www.messagelabs.com/email</a> \
______________________________________________________________________ </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Direct line: +61 2 9562 9858
</pre>
</body>
</html>
["daryld.vcf" (text/x-vcard)]
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic