Newest 'qdbus' Questions - Stack Overflow

Questions tagged [qdbus]

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

0
votes
1answer
18 views

Could not start D-Bus. Could you call qdbus?. Nothing helped, any ides how to fix it?

I installed CodeBlocks from terminal with command sudo apt-get install codeblocks on Kubuntu 14.04 and then file manager started lag. I restarted computer and had error "Could not start d-bus. Can you ...
0
votes
0answers
26 views

Can I connect a QDBusServer via pipes?

I use Qt DBus via TCP. If have found that I can set a method UNIX, is it possible to use it via PIPES only (and would that also work on Windows) I have tried to pass method=UNIX with no success. Any ...
0
votes
0answers
48 views

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 ...
0
votes
0answers
44 views

expose QVector property to D-Bus

I want to have a property like Q_PROPERTY(QVector<QString> 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 ...
0
votes
0answers
106 views

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 ...
1
vote
1answer
425 views

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 ...
1
vote
1answer
162 views

QDBus Works with my Server as Client but not GDbus

I wrote a simple DBus server in Linux using Qt's QDBus. It is a very small amount of code and the core of it is here: InterfaceDescription::InterfaceDescription() { new ifadapter(this); // ...
0
votes
1answer
623 views

Change wallpaper programmatically in KDE

I'd like to write a program in F# to change the wallpaper on Linux. It seems like I need to use dbus and JS to do that in KDE and I'm a bit confused about it. I found this, and tried running qdbus ...
0
votes
1answer
611 views

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

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 ...
2
votes
0answers
229 views

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<T> which is fully async ...
0
votes
1answer
74 views

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", '''<...
0
votes
0answers
33 views

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

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 ...
1
vote
1answer
1k views

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 ...
2
votes
1answer
176 views

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 ...
0
votes
0answers
120 views

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 ...
2
votes
0answers
129 views

dbus screensaver “ActiveChanged” signals not emitted from Ubuntu

I am unable to connect qdbus screensaver ActiveChanged() signal for Ubuntu,but following code works well in Fedora. QDBusConnection sessionConnection=QDBusConnection::sessionBus(); ...
1
vote
1answer
149 views

Exact type of QDBusArgument

Using currentType() I can get the ElementType of a QDBusArgument. That is a very unprecise information that tells me if it is an array, a basic type etc. I could not find a way to dig deeper. E.g. if ...
2
votes
0answers
62 views

Bundle additional argument to Qt4 style QDBusConnection::connect() signal/slot connection

I'm working with QtDbus and I need to handle DBus signal. I'm doing this by connecting DBus' signal to Qt slot like this: bool res = QDBusConnection::systemBus().connect(kBusName, adapterPath, ...
1
vote
1answer
642 views

QtDBus Simply Example With PowerManager

I'm trying to use QtDbus to communicate with interface provided by PowerManager in my system. My goal is very simple. I will be writing code which causes my system to hibernate using DBus interface. ...
1
vote
1answer
67 views

Screen-saver inhibit script

I would like to automatize screen-saver inhibit, when using Firefox's "plugin-container" for flash player in KDE4. I did not write the original script myself, but I fixed it a bit. #!/bin/sh #...
0
votes
1answer
204 views

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) ...
2
votes
2answers
3k views

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::...
2
votes
1answer
668 views

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

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, ...
0
votes
1answer
261 views

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()....
1
vote
1answer
767 views

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

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 ...
2
votes
0answers
830 views

Stuck with Qt and Bluetooth

I use Qt 5.4 for Windows and I'm trying to write a basic desktop program. I've tried all the examples for bluetooth bundled with Qt. (Scanning, chat, qml scanning...) None of them works. I've ...
1
vote
0answers
348 views

How to emit Dbus signal in C

I am having a method and signal. From one process which is developed in Qt Creator 5.2.1, has 1 method and 1 signal. The method is called using QDbusConnection and QDbusMessage. The signal is ...
2
votes
1answer
727 views

QDbus: register multiple objects on same path

If I understand, it is possible to use the registerObject method only once on the same path, even if objects have different interfaces in Q_ClassInfo. Is this correct?
0
votes
0answers
164 views

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 ...
1
vote
1answer
347 views

QDBus interface watch - g_bus_watch_name

Does Qt expose a method to watch a DBus interface, similar with g_bus_watch_name? I want to know when an application is started or closed, watching its DBus interface.
0
votes
3answers
493 views

How to resolve this “cast to pointer from type of different size” warning?

I have two programs that communicate over the D-Bus. In one of the there is a function that takes two parameters namely const char* data and int size and in another one I have a function that returns ...
5
votes
1answer
4k views

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 ...
2
votes
3answers
1k views

Qt C++ BlueZ 5 QDbus Library

In BlueZ 5 the DBus API has changed substantially. I previously had a working QDbus controller library for BlueZ 4 based on this: https://gitorious.org/qt-bluez-demos/ I've been googling quite a bit ...
2
votes
0answers
693 views

qdbus - can't connect to dbus signal with struct argument

I'm trying to connect to amarok d-bus signal StatusChange (reference: https://xmms2.org/wiki/MPRIS#StatusChange). Interface and struct is ok because I can connect to simple signal CapsChange(int) in ...
4
votes
1answer
6k views

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 ...
10
votes
6answers
15k views

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" ...
5
votes
1answer
1k views

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 follows: QDBusConnection::...
3
votes
1answer
1k views

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 types. http://techbase.kde.org/Development/Tutorials/D-Bus/...
3
votes
1answer
597 views

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 ...
1
vote
3answers
1k views

Use stderr in lua io.popen to determine faulty function call

I'm making a function that can read the metadata of the current song playing in spotify. This is being programmed in lua since it is an implementation for awesome wm. I got the following line to get ...
0
votes
0answers
133 views

DBus on demand object creation

So the DBus .service mechanism allows DBus to start a process if the requested service isn't running. I'm looking for something similar, but for objects. If I have Object_0 thru Object_9 available, ...
0
votes
1answer
239 views

Different Dbus bindings in server and client

I am trying to implement Dbus client. Dbus server is actually implemented by a third party and I do not know what bindings does it use (but I guess gdbus). Now can I use QDbus bindings in my client ...
0
votes
0answers
1k views

Qt QDbus Sending Custom Types with QVariant

I'm trying to send a custom class ( "Span" ) inside a QVariant across the Dbus session bus in Qt between 2 simple applications. Span is a simple class that contains 2 double type properties. I have ...
2
votes
1answer
831 views

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)
2
votes
1answer
2k views

qdbus and marshalling of custom types

I'd like to send a custom c++ class through the Qt DBUS API. I've created the class from the .proto file using the protoc compiler and added them to my project in QtCreator. Now I want to verify that ...
1
vote
1answer
1k views

QT-Dbus signals/slots?

How can I hook my QT slot to respond to a D-BUS signals generated by some 3rd party service? Is the following right? QDBusConnection bus = QDBusConnection::systemBus(); bus.connect("com.me.foo", "/",...