Results 1 to 2 of 2

Thread: Passing QList of custom classes using dbus

  1. #1
    Join Date
    Jan 2010
    Posts
    190
    Thanks
    18
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Passing QList of custom classes using dbus

    Hi! I'm trying to pass QList of custom objects through dbus, but I'm simply getting nothing.

    I've been able to pass objects of custom type MyObject, and everything seems to work fine. I read in the documentation of the class QDBusArgument that it is not necessary to implement the operator>> and operator<< if the array is a QList. So, I tried to create a signal with a QList<MyObject> as a parameter, but it seems nothing is sent (or received).

    Am I misunderstanding the documentation? What can I do to pass QList's of custom objects (provided those are already marshalled)?
    Thanks!

  2. #2
    Join Date
    Jan 2010
    Posts
    190
    Thanks
    18
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Passing QList of custom classes using dbus

    At the end I solved manually marshalling the QList's using the method beginArray(...) of QDBusArgument. Seems to work just fine for the moment. Anyway, I'm not understanding why the documentation states it is not necessary to manually marshall QList's.

Similar Threads

  1. Replies: 4
    Last Post: 20th August 2010, 13:54
  2. Replies: 1
    Last Post: 22nd April 2010, 14:34
  3. Replies: 2
    Last Post: 22nd April 2010, 11:44
  4. QWebView custom JS Classes?
    By ts230 in forum Qt Programming
    Replies: 0
    Last Post: 7th April 2010, 05:17
  5. Passing values to custom 'slot' functions (pyqt)
    By Richie in forum Qt Programming
    Replies: 2
    Last Post: 7th September 2009, 07:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.