Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

undefined reference to `vtable for MyClass'

$
0
0
Oh I finally solved the problem myclass.h #ifndef MYCLASS_H #define MYCLASS_H #include <QObject>   class MyClass : public QObject {     Q_OBJECT public:     explicit MyClass(QObject *parent = 0);   signals:   public slots:     void helloMethod(const QString &msg); };   #endif myclass.cpp #include "myclass.h" #include <QDebug>   MyClass::MyClass(QObject *parent) :     QObject(parent) { } void MyClass::helloMethod(const QString &msg) {     qDebug() << "Called the C++ slot with message:" << msg; }

Viewing all articles
Browse latest Browse all 4972

Trending Articles