source file
After some search on google, I had found the solution in other similar issue.. link#include "message.h"
Message::Message()
{
}
Message::Message(const Message &other)
{
name_=other.name_;
}
Message::~Message()
{
}
Message::Message(const QString &name)
{
setName(name);
}
QString Message::getName() const
{
return name_;
}
void Message::setName(const QString &name)
{
name_ = name;
}
it seems that i need to include a header file of QMetaType, which the tutorial didnt mention about it. Strange thing macro is still defined without the header file..
thank anyway!![]()




Reply With Quote



Bookmarks