I use QtDBus on Qt 5.8.0. I am writing an application read sensor and i want to open an interface for other application, in order to they can get sensor value. I use QDBusconnection to create a service in system bus but always failed. I don't know why? Here is my code:
bool retVal;
QDBusConnection dbus = QDBusConnection::systemBus();
retVal = dbus.registerService("com.thinhnguyen.GY86");
retVal is always false. Does anyone has experience on QtDBus could give me advices?
UPDATE: I still don't understand why some DBus service such as: NetworkManager, Connman, UDisks2...can create a DBus service in system bus without change anything in system.conf (eg. org.freedesktop.NetworkManager) but i cannot?