Unittest a function taking a QDBusArgument
I would like to know if it is possible to unit test a function taking a QVariant containing a QDBuaArgument
I manage to create a object of QDBusArgument, and fill it with data, but apparently, when the object is created in write mode, it can't be change to read object, making it very diffecult to unit test a function taking in a QDBusArgument, in any shape.
You should take a look at Qt's dbus tests, that might give you a starting point.
Hope it helps
Do you have a link. please
They can be found in the sources in qt5/qtbase/tests/auto/dbus/