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. qt_add_dbus_interface output namespace errors

qt_add_dbus_interface output namespace errors

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 1 Posters 131 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
    LuckyEddie
    wrote on last edited by
    #1

    I'm starting out with DBus in Qt with the aim of interfacing to the KDE KStars application. Several DBus interface descriptor xml files are provided. I'm using qt_add_dbus_interface in my CMakeLists.txt to generate the interface .h & .cpp from this .xml

    The files are generated but throw up errors as there is a reference to a namespaced type that shows as an undeclared identifier. As an example, I have:

    Q_SIGNALS: // SIGNALS
        void newStatus(Ekos::CaptureState status);
    

    'Ekos' has not been declared

    What do I need to do to work with this DBus interface?

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

      I found https://develop.kde.org/docs/features/d-bus/using_custom_types_with_dbus/ which explains it.
      When accessing functions that expose custom types you have to go through manual steps to include and expose these to the QMetaType system.
      This is not going to be practical for my purpose.

      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