Questions tagged [qdbus]

The QDBus namespace, part of the Qt framework, contains miscellaneous identifiers used throughout the QtDBus library.

The QDBus namespace covers the identifiers used in the QtDBus module.

QtDBus is the Qt bindings to the D-Bus inter-process communication system. The QtDBus module provides a native interface to D-Bus using the Qt signals and slots paradigm.

Qt documentation lists the module as being Unix-only but recent versions of D-Bus are supported on Windows and the QtDBus module can be enabled Windows with minimal effort.

64 questions
21
votes
7 answers

Change konsole tab title from command line and make it persistent?

How can I change the konsole tab title? By default, it's set to %u : %n, so it always changes automatically. I can set it with: qdbus org.kde.konsole $KONSOLE_DBUS_SESSION setTitle 1 "My Title" But as soon as you run something in the console, it…
Shuman
  • 3,914
  • 8
  • 42
  • 65
7
votes
2 answers

qdbusxml2cpp unknown type

While using the qdbusxml2cpp program to convert the following xml to a Qt Class, I am getting this error: qdbusxml2cpp -c ObjectManager -a ObjectManager:ObjectManager.cpp xml/object_manager.xml Got unknown type `a{oa{sa{sv}}}' You should add…
PhilBot
  • 748
  • 18
  • 85
  • 173
6
votes
3 answers

How do I extract the returned data from QDBusMessage in a Qt DBus call?

I'm trying to call WPA supplicant's DBus interface using Qt's QDBus class library. In particular, I'm trying to use the "Get" property call to retrieve the "Interfaces" property value. The DBus specification (via introspection) for "Get"…
MatthewD
  • 2,509
  • 2
  • 23
  • 27
6
votes
1 answer

QtService application cannot connect to system bus when running as a service

I have recompiled Qt with integrated dbus for windows. Further, I have implemented a QtService application which registers a service and an object at the system bus as…
trylimits
  • 2,575
  • 1
  • 22
  • 32
5
votes
2 answers

mapping pid to qdbus service numbers after launching

I am trying to write a bash script which will launch a program (konsole) and send dbus messages to it. Here is my experiment konsole & echo pid is $! ps aux | grep konsole qdbus | grep konsole This outputs pid is 2726 me 2726 0.0 0.4 45404 …
spraff
  • 32,570
  • 22
  • 121
  • 229
4
votes
1 answer

How do I parse Dict of {String, Dict of {String, Variant}} with QDBus?

I am querying NetworkManager's org.freedesktop.NetworkManager.Settings.Connection interface, calling "GetSettings" on it. It returns a Dict of {String, Dict of {String, Variant}} or a{sa{sv}} in Dbus type terms. I'm using QtCreator with Qt4 to build…
Zimano
  • 1,870
  • 2
  • 23
  • 41
4
votes
1 answer

QDbus: Service Call Returning QList

I'm running into difficulty retrieving values from a service call that is supposed to return an array of integers. The method call in the interface xml file is defined as:
keelerm
  • 2,873
  • 20
  • 12
3
votes
2 answers

QtDbus is not working in Qt5.4.1 on Windows 7

When I run the Qt Creator dbus examples, they couldn't run, is there any settings or stuff for working QtDbus module or any prerequistics? for example in chat project: if (!QDBusConnection::sessionBus().isConnected()) { qWarning("Cannot connect…
Reza Ebrahimi
  • 3,623
  • 2
  • 27
  • 41
3
votes
1 answer

Defining Enum custom types for Qt D-Bus introspection

I am working with QDBUS which has the custom type as Enum. After googling I found below link which explains marshalling of QDBUS custom…
3
votes
1 answer

qdbus multiple interfaces in the same object path

I need to know how to expose multiple interfaces in a same object path under a service using QDbus bindings in the dbus server. I use qdbusxml2cpp to generate the adaptor classes. The structure below could make the question clear. MyService (Service…
3
votes
1 answer

connecting to a signal with qdbus

qdbus is rather straightforward when calling methods, but is it possible to connect to a signal with it? Signature: signal void org.kde.kwin.Scripting.printError(QString text)
Reactormonk
  • 21,472
  • 14
  • 74
  • 123
2
votes
1 answer

Qt DBus connect not working with typedef in SLOT arguments

I can connect DBus signals to Qt slots using QDBusConnection::connect and the old-style SLOT syntax: #pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Wconversion" # include # include # …
not-a-user
  • 4,088
  • 3
  • 21
  • 37
2
votes
1 answer

Proper way to implement async function in Qt/DBus adaptor

As described in D-Bus documentation, all IPC calls considered as asynchronous. When Qt calls remote D-Bus object through QDBusAbstractInterface, there's QBusPendingCall which is fully async and provide signalling when call ran to completion. In…
Sharihin
  • 140
  • 11
2
votes
1 answer

D-Bus method not found at object path despite the fact that method exist

I implement an app with this com.example.appname.desktop file as follows: $ cat /usr/local/share/applications/com.example.appname.desktop [Desktop Entry] Version=1.0 Terminal=false Type=Application Name=appname Exec=/opt/app/appname…
JamesWebbTelescopeAlien
  • 3,547
  • 2
  • 30
  • 51
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
1
2 3 4 5