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. Dual inheritance with library and QObject
Qt 6.11 is out! See what's new in the release blog

Dual inheritance with library and QObject

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

    Im using libxbee to communicate via serial to an xbee. Im following the C++ example http://code.google.com/p/libxbee/source/browse/sample/xbee1/10.c++/main.cpp?repo=libxbee-v3 there but Im trying to use signals as well.

    Here is what I tried
    @class myConnection: public libxbee::ConCallback, public QObject{
    Q_OBJECT
    public:
    explicit myConnection(libxbee::XBee &parent, std::string type, struct xbee_conAddress *address = NULL): libxbee::ConCallback(parent, type, address) {}
    void xbee_conCallback(libxbee::Pkt **pkt);
    std::string myData;
    signals:
    void newData(QString,QString);
    };@
    but get inheritance issues.

    What should I do to get this to work?

    Thanks in advance

    1 Reply Last reply
    0
    • U Offline
      U Offline
      utcenter
      wrote on last edited by
      #2

      Put QObject first - always

      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