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
1
vote
1 answer

How to tell to qmake to include headers, when generating files from dbus xml?

TLDR: How do I tell qmake to generate files using dbus xml description, which include appropriate header? Full example and more info follows bellow. My xml file (custom.xml) describing dbus interface looks like this :
BЈовић
  • 62,405
  • 41
  • 173
  • 273
1
vote
1 answer

communication between server client in qt dbus

I'm new to QT programming. I'm trying to communicate between two qt applications using DBUS, I've been able to create a interface adapter and communicate as follows, Registering service on the server application. connecting to the interface object…
fawfg
  • 11
  • 2
1
vote
0 answers

How to make Qt Dbus more responsive? (When the main thread is busy)

I am using Qt DBus to monitor signals. However, as the main Qt thread is often busy with a long running task (a design I currently cannot change), there is a long delay between sending a qt-dbus message by another program an the slot being called.…
Kevin
  • 4,070
  • 4
  • 45
  • 67
1
vote
1 answer

qdbusxml2cpp not working properly

I'm doing an small application based in Qt to get all Wifi bearer near my embedded Linux and for that I'm using Connman with QtDBus. In order to get all wifi signals, I'm trying to get autogenerated adaptor code using qdbusxml2cpp application. To do…
Juan Garcia
  • 843
  • 2
  • 11
  • 34
1
vote
0 answers

QDBus registerObject exposes non-existent objects

I'm working on exposing interfaces in Qt 5.3 on DBus. I have an adapter that implements the org.freedesktop.DBus.ObjectManager class modeled on the code at openSuse Imagewriter. When I call registerObject with a path like…
danielweberdlc
  • 452
  • 1
  • 8
  • 16
1
vote
0 answers

How to use qt dbus bindings in posix thread?

I am writing a library for the application, which loads my library dinamycaly, and starts the execution in a posix thread. I asked the developers of the application to use QThreads, but they said that they can't change anything. In my library, I…
BЈовић
  • 62,405
  • 41
  • 173
  • 273
1
vote
1 answer

dbus session connections: connecting dbus signals with qt slots, how can it be done?

So, for the life of me, I can't get my object to connect to the session bus. So, I'm trying to connect "wakeup" of "my_obj" to the dBus signal "profileChanged". But, even though I'm sure (via qbusviewer) that this signal is being emitted, "wakeup"…
user2602914
  • 301
  • 3
  • 11
1
vote
2 answers

Qt DBus property convert to map

I need to get a DBus interface's property, so I did interface.property(name). That returns a QVariant, but the map that a QVariant can return is only QMap, whereas I need QMap. What should I do?
user2563892
  • 553
  • 1
  • 7
  • 16
1
vote
1 answer

Building Qt 4.8 with QtDBus support

I try to compile Qt from sources, everything goes ok(more or less), except dbus part. ./configure -v -opensource -dbus-linked -arch i386 Configure shows this error: 1 error generated. make: * [dbus.o] Error 1 D-Bus disabled. The QtDBus…
andrey.s
  • 789
  • 10
  • 28
1
vote
1 answer

How to add the header in autogenerated bindings code by qdbusxml2cpp?

$qdbusxml2cpp -v -c CustomIf -p customif.h:customif.cpp org.item.custom.xml org.item.custom.xml
dexterous
  • 6,422
  • 12
  • 51
  • 99
1
vote
2 answers

Connect to session DBus on different computer

I can run my Qt DBus test by connecting to the session bus: QDBusConnection connection = QDBusConnection::sessionBus(); connection.registerService(...) .... TestserviceInterface testserviceInterface( .... , connection, &a); But can I connect to…
Horst Walter
  • 13,663
  • 32
  • 126
  • 228
1
vote
1 answer

QtDBus linkage error

I built Qt on Windows with WinDBus. Qt itself built OK, but QDbus examples build fails with message moc_car_adaptor_p.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const…
ILYA
  • 495
  • 6
  • 18
1
vote
1 answer

Design suggestion needed to convert synchronous qtdbus calls to asynchronous

The applications in my project were until now communicating over qtdbus using synchronous calls. However I now need to convert a few of these calls to asynchronous. For that I chose to use this API available in…
Spottsworth
  • 395
  • 5
  • 12
0
votes
0 answers

QtDBus: expose two different interfaces on two different services

I am trying to develop a stand-alone status notifier app to display "tray icons". KDE developed a dbus spec for this where apps can register a status notifier icon via dbus. The service that waits for the apps is org.kde.StatusNotifierWatcher, the…
Marcus
  • 1,685
  • 1
  • 18
  • 33
0
votes
0 answers

Changing the timeout value on QDbusInterface does not seem to do anything

I've got a QDbus communication set up that calls a method on the server side. It works for most requests, but not if the request processing time is higher than the default QDbus timeout of 25 seconds (I have tried with different processing times).…
EmS
  • 1
  • 2