Have a look a DBus - or QDBus.(http://doc.qt.io/qt-5/qtdbus-index.html)