this->m_cRemoteInterface = new QDBusInterface("org.my.service", "/data", "org.freedesktop.DBus.Properties.Get");
QDBusReply<uint64_t> cResult = m_cRemoteInterface->call("property1");
代码引发以下错误:
org.freedesktop.DBus.Error.UnknownMethod:
“property1”方法
"org.freedesktop.DBus.Properties.Get"
不存在
但当我在shell中发出以下命令时,它将返回正确的值:
数据总线org.my.service /数据org.freedesktop.DBus.Properties.Get "
“物业1
我能做错什么?