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. Serializing std::variant into QDBusArgument

Serializing std::variant into QDBusArgument

Scheduled Pinned Locked Moved Solved General and Desktop
dbus
2 Posts 2 Posters 380 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 7 Apr 2020, 14:41 last edited by
    #1

    I want to use std::variant in a QDBus method call, is it possible to serialize it as in this example https://doc.qt.io/qt-5/qdbusargument.html#beginStructure ?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 7 Apr 2020, 18:25 last edited by
      #2

      Hi,

      Warning I am no expert of that module.

      That said, I would rather go with QDBusVariant and make your std::variant available to Qt's QVariant class.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      2/2

      7 Apr 2020, 18:25

      • Login

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