blob: 4dc896f9ee2fc51ff325ee0860b4e0977323212e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//! [0]
QDBusReply<QString> reply = interface->call("RemoteMethod");
if (reply.isValid())
// use the returned value
useValue(reply.value());
else
// call failed. Show an error condition.
showError(reply.error());
//! [0]
//! [1]
QString reply = interface->call("RemoteMethod");
//! [1]
|