mail archive of the rauc mailing list
 help / color / mirror / Atom feed
* [RAUC] D-Bus control Qt
@ 2021-08-02  6:15 Stahl, Michael
  2021-08-02  8:14 ` Bastian Krause
  2021-08-02 11:41 ` [RAUC] Antwort: " Eugen.Wiens
  0 siblings, 2 replies; 16+ messages in thread
From: Stahl, Michael @ 2021-08-02  6:15 UTC (permalink / raw)
  To: RAUC


[-- Attachment #1.1: Type: text/plain, Size: 934 bytes --]

Is there someone who implemented the DBus Property "Progress" into a Qt-Application? The problem seems the return value isi (Integer, String, Integer).
For all other properties with a single return value like "Operation" or "LastError" the Qt DBus API works fine.
I found an email from 28.Oct 2019 in the mailing list where Bastian Krause had the same issue. The answer was only that he had to cunsult the Qt DBus documentation on how a tuple is mapped to Qt types.

Thats a good hint but after hours of searching the web I didn't find a solution. The return value for a property is QVariant in Qt.

Trial 1 -> Read value by iface.property("Progress"):
This is the error message I got when I try to read the progress property:
Cannot construct placeholder type QDBusRawType

Trial 2 -> Read value by iface.call("Get",...):
Not able to get any information. The arguments of the returned QDBusMessages are always empty!



[-- Attachment #1.2: Type: text/html, Size: 5252 bytes --]

[-- Attachment #2: Type: text/plain, Size: 66 bytes --]

_______________________________________________
RAUC mailing list

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2021-08-03 13:27 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-02  6:15 [RAUC] D-Bus control Qt Stahl, Michael
2021-08-02  8:14 ` Bastian Krause
2021-08-02  8:53   ` Wolk, Steffen
2021-08-02 11:41 ` [RAUC] Antwort: " Eugen.Wiens
2021-08-02 12:45   ` Stahl, Michael
2021-08-02 13:20     ` Stahl, Michael
2021-08-02 13:36       ` [RAUC] Antwort: " Eugen.Wiens
2021-08-02 14:29         ` Stahl, Michael
2021-08-02 14:53           ` [RAUC] Antwort: " Eugen.Wiens
2021-08-03  6:21             ` Stahl, Michael
2021-08-03  6:27               ` [RAUC] Antwort: " Eugen.Wiens
2021-08-03  8:27                 ` Stahl, Michael
2021-08-03 10:57                   ` Stahl, Michael
2021-08-03 11:00                   ` Stahl, Michael
2021-08-03 11:14                     ` [RAUC] Antwort: " Eugen.Wiens
2021-08-03 13:27                       ` Stahl, Michael

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox