Dual inheritance with library and QObject
-
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
-
Put QObject first - always