[Qt-interest] [QtDBUS] Getting properties

Thiago Macieira thiago at kde.org
Tue Apr 12 17:59:05 CEST 2011


Em terça-feira, 12 de abril de 2011, às 17:29:22, Thiago Macieira escreveu:
> Please find attached the one-file that I really wanted to receive. There's
> no  need for a header nor even for the .pro file. It's clear that I need QT
> += testlib dbus

And if you run your code with a recent Qt 4.7:

QWARN  : tst_UDisksProperties::complexProperties() QDBusAbstractInterface: 
type QDBusRawType<0x6128737362626275626262626262626229>* must be registered 
with QtDBus before it can be used to read property 
org.freedesktop.UDisks.KnownFilesystems
QDEBUG : tst_UDisksProperties::complexProperties() QVariant(, ) 
QDEBUG : tst_UDisksProperties::complexProperties() 
QDBusError("org.freedesktop.DBus.Error.Failed", "Unregistered type 
QDBusRawType<0x6128737362626275626262626262626229>* cannot be handled") 

The problem is that you cannot register this type (it has an ugly and 
impossible name). Please file a feature request in 
http://bugreports.qt.nokia.com to have QtDBus handle more gracefully complex 
properties.

It should return simply a QDBusArgument you can use to demarshall here.
-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110412/72041277/attachment.bin 


More information about the Qt-interest-old mailing list