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. Returning a QList of a custom type in a QDBus method

Returning a QList of a custom type in a QDBus method

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 251 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.
  • L Offline
    L Offline
    Lurkki
    wrote on last edited by
    #1

    I'm able to return a single instance of a custom type in a QDBus method call, but using QList <Type> as the return value doesn't show the method on the interface. Does anyone know what could be wrong?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      Lurkki
      wrote on last edited by
      #2

      I just had to register the type with qDBusRegisterMetaType<QList<Type>>();

      1 Reply Last reply
      3

      • Login

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