Does Kwin script's callDBus support a{sv} argument type?

Thiago Macieira thiago at
Wed Mar 10 17:14:12 GMT 2021

On Wednesday, 10 March 2021 03:43:44 PST Phương Lê Hoàng wrote:
> I tried to read the source code of callDBus and failed to understand
> whether it supports a{sv} or not, since I'm not familiar with Qt and C++.
> #L253

This should have worked. Searching the source code shows that 

    for (const QJSValue &jsArgument : qAsConst(jsArguments)) {
         dbusArguments << jsArgument.toVariant();

Should end up creating a QVariantMap and QtDBus should have understood them to 
create an a{sv}.

Something is broken. You'll need to debug.
Thiago Macieira - thiago (AT) - thiago (AT)
   Software Architect - Intel DPG Cloud Engineering

More information about the kde-devel mailing list