ktchow1
19th April 2012, 03:51
Dear all
I try the Qt4.7 DBus example, including :
- chat room example
- remote car example
using the code and project setting provided with Qt. Session bus is used in both examples, and they work well. But now I would like to change the session bus into system bus, by changing the line : QDBusConnection::sessionBus() into QDBusConnection::systemBus() only, while keeping the rest unchanged. However it doesnt work now. By tracking the programme line by line, I find that it fails to invoke : registerService("xxx.yyy.zzz"). Can anyone help to solve the problem? Does it involve the system bus permission in linux?
thank you very much
best regards
k.t.
I try the Qt4.7 DBus example, including :
- chat room example
- remote car example
using the code and project setting provided with Qt. Session bus is used in both examples, and they work well. But now I would like to change the session bus into system bus, by changing the line : QDBusConnection::sessionBus() into QDBusConnection::systemBus() only, while keeping the rest unchanged. However it doesnt work now. By tracking the programme line by line, I find that it fails to invoke : registerService("xxx.yyy.zzz"). Can anyone help to solve the problem? Does it involve the system bus permission in linux?
thank you very much
best regards
k.t.