[PyQt] Problem with signal and slot arguments
Dennis Jensen
djensen at pgcontrols.com
Tue Oct 29 19:38:59 GMT 2019
Okay well I am not Guru by any stretch of the imagination just found
only references to it using C primitives good to know though thanks for
the correction
On 10/29/2019 10:48 AM, Florian Bruhin wrote:
> 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
>
More information about the PyQt
mailing list