I need to call a DBus method with a uint argument. Using message.setArguments([])
sets integers, which results in an error that the function could not be found.
For Qt5, this was already answered here.
In Qt6 with PySide6, this doesn't work unfortunatly. QDBusArgument only has a setVariant()
method, with no type specification. There is an __lshift__()
method defined for uint
here, but since python has no uint
type and ctypes.c_uint()
doesn't work either, I guess this is just copied documentation from the C++ library.
First I tried using different types: python integers, ctypes.c_uint()
, '0x0'
, b'0x0'
. Adding and subtracting 2**32
from my integer also doesn't help.