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
0
votes
1 answer

qdbus is Segmentation faulting

I'm using KTimeTracker to monitor my time on different projects. I have a PHP script that periodically runs to give me an idea on how long I've worked in the day. The PHP script used to connect to KtimeTracker using qdbus to save to file and then…
burtzerk
  • 33
  • 3
0
votes
1 answer

Get list of available WiFi connections in Linux

I am try to get list of SSID in Fedora 31 Linux, by D-Bus message, using Qt5. I am checking many tutorials, but still cant communicate by D-Bus, and I still do not understand differences between interface, path and service. With documentation help…
InnerWorld
  • 585
  • 7
  • 26
0
votes
0 answers

Troubleshooting Lua "qdbus" command via os.execute()

I'm using ArchLinux/KDE/Plasma and I'm trying to program a lua script (as a plugin in TeamSpeak 3) that will execute the following command, which works in my terminal emulator, but not via a Lua script (that seems to be running as the same…
TheFrack
  • 2,823
  • 7
  • 28
  • 47
0
votes
0 answers

expose QVector property to D-Bus

I want to have a property like Q_PROPERTY(QVector persons READ persons CONSTANT) to expose it as D-Bus service. Also the client side need to read it of course. Problem: When i do like this and start my service it does not show up in…
0
votes
0 answers

Add QObject to QT main loop in order to recieve dbus messages

I have a Qt console application. In this application, there is an object of type "my_client". "my_client" objects have an slot named "messageSlot". This slot is connected to a DBUS message. So the main function of this qt app is as follows : int…
payman
  • 300
  • 2
  • 15
0
votes
1 answer

Dbus Signals and Slots in Qt

I need to catch the signal from QDBus and I am new for this and don't know how to catch the signal from QDbus. Please explain with examples so i can understand.
sathish
  • 153
  • 1
  • 11
0
votes
1 answer

What is wrong with this class? ( QDBusAbstractAdaptor )

I have the following class: class DBusAdaptor(QDBusAbstractAdaptor): Q_CLASSINFO("D-Bus Interface", 'org.kde.kdialog.ProgressDialog') Q_CLASSINFO("D-Bus Introspection", '''
user6035995
0
votes
0 answers

debugger freezes on X (arm)

I am developing an application for Olimex A20 with Qt 5.7. This app needs to run on X. If I just run the application it works perfectly fine. The issue is with the debuging - debugger freezes. This is the stack trace I see when I interrupt the…
ramtheconqueror
  • 1,907
  • 1
  • 22
  • 35
0
votes
1 answer

Get service name from QDBusConnection with Qt5

Our framework is recently updating to Qt5 from Qt4. But here we got some problems on the d-bus event processing. The original code QDBusConnection::sender().name() return empty string. And the official suggested substitute way…
Cigany
  • 178
  • 1
  • 10
0
votes
0 answers

Calls to QDBus freezing UI

I have an application which using QDBus connects to a Bluetooth printer. After pairing the printer, I call Connect on org.bluez.Serial interface. I realised this is actally freezing the UI until the call returns. I created a worker object and then…
ramtheconqueror
  • 1,907
  • 1
  • 22
  • 35
0
votes
1 answer

Raspberry Pi QDBus error: could not send message to service

i am trying to execute a simple qt5 c++ program to get all wifi networks listed, when i execute it in linux mint it works out of the box, but when i try to execute it in Raspberry pi (latest raspbian) i get the following error: QDBusConnection:…
walolinux
  • 531
  • 1
  • 6
  • 20
0
votes
1 answer

QDbusReply doesn't work calling a DBus function which returns a aa{sv} with Qt4?

I have a dbus interface which works in d-feet as expected but when I want to call it from within my QT4 Application the list has zero size :( I guess, aa{sv} can be used from Qt4 via QVariantList, right? QDBusReply< QVariantList > reply =…
Thilo Cestonaro
  • 182
  • 1
  • 16
0
votes
1 answer

How to add objects to DBus service from another process / program

I create a DBus service and add objects to it. QDBusConnection connection = QDBusConnection::sessionBus(); connection.registerService(serviceName); // name, e.g. "foo" QDBusConnection::sessionBus().registerObject(path, object, myoptions); Fine, I…
Horst Walter
  • 13,663
  • 32
  • 126
  • 228
0
votes
1 answer

Dbus.Properties Get method is not working in qt4

I'm trying to get a property value from the dbus. I'm getting no error, but I'm also not getting the right value. In other words, the value returned is not the same value as returned by qdbus. Here is my code: const QString service =…
user2602914
  • 301
  • 3
  • 11
0
votes
0 answers

Find DBus server by broadcast (or otherwise)

In my Qt application I am using a peer to peer DBus connection. Server runs on computer A, client on B, connected via DBus TCP/IP connection. Works fine. I wonder if I can somehow find out whether the server is running and what its IP address is? So…
Horst Walter
  • 13,663
  • 32
  • 126
  • 228