Questions tagged [qtdbus]

The QtDBus module, part of the Qt framework, is a Unix-only library that you can use to perform Inter-Process Communication using the D-Bus protocol.

D-Bus is an Inter-Process Communication (IPC) open-source system for software applications to communicate with one another. QtDBus simplifies the use of D-Bus in Qt applications. A QtDbus quick tutorial is here.

56 questions
2
votes
0 answers

QtDBus, Not receiving signals from dbus-send when using QT DBus xml interface

System information: QT5.10 Ubuntu 16.04 With QtDBus, and using the following XML, I generated the xyz_interface.hpp
sayo9394
  • 435
  • 8
  • 18
2
votes
1 answer

QSignalSpy::wait(...) fails, when QTest::qWait(...) succeeds

It's a confusing situation i'm in. While testing state transitions for a QStateMachine, the following code fails to spy on the signal that causes the transition. // Test transition to SS_STARTING QSignalSpy spy(test_obj_,…
sayo9394
  • 435
  • 8
  • 18
2
votes
2 answers

How to get QDBusConnection::connect() failure reason

I'm trying to connect to a D-Bus signal this way: bool result = QDBusConnection::systemBus().connect( "foo.bar", // service "/foo/bar", // path "foo.bar", // interface "SignalSomething", this, …
lornova
  • 6,667
  • 9
  • 47
  • 74
2
votes
1 answer

Re-connecting to QDBus server after server has been restarted (Qt C++)

I'm testing out using DBus for inter process communication for an QT C++ project (Linux). I'm not using the bus daemon and i'm using unix paths / sockets. After navigating my way through the mysterious world that is QT DBUS all seemed to be going…
Makaku00
  • 121
  • 5
  • 14
2
votes
1 answer

Extract D-Bus arguments and object path dynamically from net.connman.Manager's GetService method

I am planning to develop an application that will make use of DBus and connman, a wireless manager for embedded devices. From my understanding DBus exposes the methods used by a program, and allows developers to also make use of these methods in…
Alvin Dizon
  • 1,855
  • 14
  • 34
2
votes
0 answers

Is synchronisation required for DBUS?

I have a doubt on how a DBUS calls are synchronised or made safe? This is more of a conceptual question. I know that this situation will not arise in SOCKETs. The consumer gets blocked unless the producer has finished its task - recvfrm and…
dexterous
  • 6,422
  • 12
  • 51
  • 99
2
votes
0 answers

sending a dbus message from shell to qt app

I want to do dbus-send from shell/console to a qt application. This is the code for a simple QT app #include "mainwindow.h" #include "ui_mainwindow.h" #include #include #include #include…
rosewater
  • 604
  • 2
  • 8
  • 22
2
votes
1 answer

Port Qt app with QtDBus on android

I have an app written in Qt and it uses QtDBus. I need to port it on android. Do not have much experience with both technologies. when I try to compile my Qt app for android I get am getting an error: fatal error: QtDBus/QtDBus: No such file or…
poul
  • 123
  • 2
  • 14
2
votes
1 answer

QDBusAbstractAdaptor object does not export implemented dbus interface

I'm trying to implement a pairing agent for BlueZ v5.5 with Qt and its DBus functionality. I have an adaptor class that is generated by the qdbusxml2cpp tool that I called PairingAgentAdaptor and a class with the implemented methods (PairingAgent)…
pinki
  • 902
  • 2
  • 12
  • 29
2
votes
1 answer

How does one expose methods and properties on DBus using a QDBusAbstractAdaptor with PyQt4?

I am trying to get some basic code running on DBus using PyQt4, specifically QtDBus. I am using a Python3 version of PyQt4. I have already gotten the code I want running on Qt (c++) but I want to get similar code running using only Python. I want to…
Mike
  • 728
  • 1
  • 7
  • 27
2
votes
1 answer

How to pack complex data into a QtDBus reply?

I have to implement a DBus service in Qt that must return a reasonably complex piece of data that follows a given spec. The data is essentially a series of tested maps, arrays, structures, and other variants. I can't find a handy way to pack all…
Thomi
  • 11,647
  • 13
  • 72
  • 110
1
vote
0 answers

Cross-compile QtDbus application for Linux/MIPS

I am trying to cross-compile dbus-chat example (included in qt-everywhere-opensource-src-4.6.2) for Linux/MIPS device. I am getting following error while building: .../qt-everywhere-opensource-src-4.6.2/lib/libQtCore.so: undefined reference to…
Lata Agrawal
  • 81
  • 1
  • 8
1
vote
1 answer

How to register an interface and register methods using QtDbus?

I want to register an interface and methods on QtDbus. In glib Dbus we have have a method g_dbus_register_interface(.. ,.. , .., ..). Is there a way I can do the same using QtDbus?
Jenny
  • 71
  • 5
1
vote
1 answer

Qt qdbusxml2cpp no output

I want to allow my app to expose functions to the dbus. I generated the following xml for my class:
faxe1008
  • 35
  • 7
1
vote
1 answer

How to send unsigned values to dBus from Python

I'm trying to use PyQt5's DBus module to interact with the KDE PowerManagerAgent. When calling the AddInhibition method I need to send the first paramter as an uint32 (Unsigned int), but the code sends the value as a singed int. The code is written…