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]
↧