From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: References: From: Bastian Krause Message-ID: <9296676f-1bc0-e06e-840d-5b006c7876a6@pengutronix.de> Date: Mon, 2 Aug 2021 10:14:49 +0200 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Subject: Re: [RAUC] D-Bus control Qt List-Id: RAUC Project - Discussion List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable Errors-To: rauc-bounces@pengutronix.de Sender: "RAUC" To: "Stahl, Michael" , "RAUC@pengutronix.de" Cc: "Wolk, Steffen" Hi, On 8/2/21 8:15 AM, Stahl, Michael wrote: > Is there someone who implemented the DBus Property "Progress" into a > Qt-Application? The problem seems the return value isi (Integer, String, > Integer).=A0 > For all other properties with a single return value like "Operation" or > "LastError" the Qt DBus API works fine.=A0 > 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. I just answered the mail by Steffen Wolk back then. > 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.=A0 > = > 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! I don't have any experience here. Maybe Steffen Wolk (in cc) can share how his solution looks like? Regards, Bastian -- = Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ RAUC mailing list