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

C++ class with QML

$
0
0
Hello i ve recently made a demo class to test if i can declare its object in main: Butit gives me unresolved external error, here is the header file: #ifndef DETECTSQUARES_H #define DETECTSQUARES_H   #include <QObject>   class DetectSquares: public QObject { Q_OBJECT Q_PROPERTY(QString author READ author WRITE setAuthor NOTIFY authorChanged) public:     explicit DetectSquares(QObject *parent=0);     ~DetectSquares(); };   #endif // DETECTSQUARES_H I get error when i declare DetectSquares r; [Edited – Please use code tags “@@” – p3c0]

Viewing all articles
Browse latest Browse all 4972

Trending Articles