Thanks for all the help Amleto, appreciate it.. I fixed the error with your suggestion!
But, now i get this error in my class Phase.h:
error: 'QObject::QObject(const QObject&)' is private
error: within this context
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
class Phase : public QObject
{
Q_OBJECT
protected:
QString id; //!< Identificador del dispositivo
int value; //!< valor de la fase
public:
Phase (QString id, int value);
QString getId();
void setId(QString id);
int getValue();
void setValue(int value);
};
|
I guess that it's the same situation the previous error, as I understand you a subclass of QObject, cannot be copied
I read that, perhaps i could pass it to your function by const reference instead. But i don't have any idea how to do that.
I try to apply the same solution to the above problem, but did not work.
can you suggest me something?
my apologies, I'm really newbie at this