Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Help, need example of passing custom class in QDbusArguments
Forum Updated to NodeBB v4.3 + New Features

Help, need example of passing custom class in QDbusArguments

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 127 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mumanM Offline
    mumanM Offline
    muman
    wrote on last edited by
    #1

    Hello,

    I need some help finding an end-to-end example of using a custom class to pass to and from a dbus service. I have found mentions of Q_DECLARE_METATYPE and qDBusRegisterMetaType<> and found a barely compiling example. But no really good example of how to go about this.

    I would like to create a structure which contains information which could be serialized to a QDBusArgument using << / >> operators. And then create a QList<myClass> which can be returned from a service method. I currently use QVariantMap and have been able to use it to pass complex data out. But now we need to be able to actually pass structured data through the IPC mechanism.

    Any good help will be greatly appreciated.

    Thank you,
    Michael Uman
    Sr Firmware Engineer
    Cana Technology

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved