Answer the question
In order to leave comments, you need to log in
Can't figure out how to fix errors in a QT Widgets project?
error: undefined reference to `Profile::Profile(QWidget*)'
void Social::on_action_triggered()
{
Profile *pf = new Profile;
pf->show();
}
void Profile::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
if (_c == QMetaObject::InvokeMetaMethod) {
Q_ASSERT(staticMetaObject.cast(_o));
Profile *_t = static_cast(_o);
ccase 0: _t->on_buttonBox_accepted(); break;
case 1: _t->on_buttonBox_rejected(); break;
case 2: _t->get_log_a_pas((*reinterpret_cast< QString(*)>(_a[1])),(*..........
default: ;
}
}
}
Answer the question
In order to leave comments, you need to log in
Either you forgot Q_OBJECT in the profile declaration, or you need to restart qmake
The first fragment - did you forget to include the header with the Profile?
The second snippet is to rebuild the moc file that has these errors. Apparently it's no longer relevant.
You didn't define on_buttonBox_accepted methods, which is what the linker told you to do.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question