[PyQt] Problem with signal and slot arguments

Florian Bruhin me at the-compiler.org
Tue Oct 29 15:48:01 GMT 2019


On Tue, Oct 29, 2019 at 09:19:37AM -0500, Dennis Jensen wrote:
> Actually I do not think the pyqtSlot can take that data type from what I
> understand is they only deal in primitives (int, str, object)

I'm not sure what makes you think so.

It works just fine, and the docs[1] say "Each type may be a Python type object
or a string that is the name of a C++ type.". QBluetoothDeviceInfo is a type
object (a class), and so is str or int or object.

[1] https://www.riverbankcomputing.com/static/Docs/PyQt5/signals_slots.html#the-pyqtslot-decorator

Florian

-- 
https://www.qutebrowser.org | me at the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
         I love long mails! | https://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20191029/9411e97b/attachment.sig>


More information about the PyQt mailing list