[PyQt] Slot type validation: int/qint64

Florian Bruhin me at the-compiler.org
Fri Apr 29 19:36:11 BST 2016


* Florian Bruhin <me at the-compiler.org> [2016-04-26 20:11:49 +0200]:
> Hi!
> 
> Thanks to the slot type validation of PyQt 5.6 I discovered a lot of cases
> where my decorations where plain wrong...
> 
> However in this case I'm unsure what's going on:
> 
> 	Traceback (most recent call last):
> 	  File ".../qutebrowser/browser/webpage.py", line 327, in on_unsupported_content
> 		suggested_filename=suggested_filename)
> 	  File ".../qutebrowser/browser/downloads.py", line 884, in fetch
> 		download = DownloadItem(reply, self._win_id, self)
> 	  File ".../qutebrowser/browser/downloads.py", line 332, in __init__
> 		self.init_reply(reply)
> 	  File ".../qutebrowser/browser/downloads.py", line 430, in init_reply
> 		reply.downloadProgress.connect(self.stats.on_download_progress)
> 	TypeError: decorated slot has no signature compatible with downloadProgress(qint64,qint64)
> 
> [...]
> 
> Using 'qint64', 'qint64' instead works.
> 
> I've tried to create a minimal example:
> 
> [...]
> 
> But that seems to work fine for some reason...

I can reproduce the issue with the attached example (thanks to ntome
in the #pyqt IRC channel).

Florian

-- 
http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
         I love long mails! | http://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qint64.py
Type: text/x-python
Size: 330 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160429/864e72fd/attachment.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160429/864e72fd/attachment.sig>


More information about the PyQt mailing list