[PyKDE] Problem connecting to QDataBrowser.currentChanged

Phil Thompson phil at river-bank.demon.co.uk
Tue Aug 6 19:52:01 BST 2002


Hans-Peter Jansen wrote:

> Hi,
> 
> attached is a sql example, which stores images in a database. In order
> to control its behaviour, I would like to connect to the
> currentChanged(const QSqlRecord *) signal. But it results in:
> 
> Traceback (most recent call last):
>   File "./runform3.py", line 32, in polish
>     self.currentChanged)
> RuntimeError: Signal has wrong argument types for slot
> Traceback (most recent call last):
>   File "./runform3.py", line 32, in polish
>     self.currentChanged)
> RuntimeError: Signal has wrong argument types for slot
> Traceback (most recent call last):
>   File "./runform3.py", line 32, in polish
>     self.currentChanged)
> RuntimeError: Signal has wrong argument types for slot
> Traceback (most recent call last):
>   File "./runform3.py", line 32, in polish
>     self.currentChanged)
> RuntimeError: Signal has wrong argument types for slot
> 
> Signal handler is defined as follows:
>     def currentChanged(self, rec):
> 
> The question is, how do I specify a const QSqlRecord * parameter 
> in my signal handler?


It's a SIP code generator bug. Re-build your PyQt source with tonight's 
SIP snapshot.

Phil




More information about the PyQt mailing list