Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt dbus for multiple out parameters
Qt 6.12 LTS is out! See what's new in the release blog

Qt dbus for multiple out parameters

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 2.4k Views 1 Watching
  • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    @
    <method name="GetListMainSinks">
    <arg type="n" name="returnvalue" direction="out"></arg>
    <arg type="a(qs(nn)nnq)" name="listMainSinks" direction="out"></arg>
    <annotation name="com.trolltech.QtDBus.QtTypeName.Out1" value="std::vector < am_SinkType_s > "/>
    </method>
    @
    My application has a method as above.
    I have to retun 2 items one is the result and other is a vector os structure which is an argument in the function
    this folllowing is in adaptor.h
    @
    short GetListMainSinks(std::vector < am_SinkType_s > &listMainSinks);
    @
    which is ok
    and the following is in adaptor.cpp
    @
    short Adaptor::GetListMainSinks(std::vector < am_SinkType_s > &listMainSinks)
    {
    // handle method call org.a.comGetListMainSinks
    //return static_cast<YourObjectType *>(parent())->GetListMainSinks(listMainSinks);
    }
    @
    where is the invoke mathod call???
    Please let me know if i am doing something incorrect

    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
    • Unsolved