Unsolved moc file
-
I am running Qt Creator 3.4.2 (opensource).
I have 13 modules at this point. Is that to many for opensource?Ever so often I get this error and the moc file pops up with this line in it:
case 3: _t->on_label_linkActivated((reinterpret_cast< const QString()>(_a[1]))); break;
I delete this line and the compile works again, until.Any help as to how to stop this comeing up will be appreciated.
-
Hi,
No it's not.
Do you have a designer based widget which you changed the name of a slot or the name of an internal widget ?
-
Yes. I am guilty of such.
-
how do I stop it?
-
Update the name of the slot to match the name of the widget.
-
Does this slot name match the widget?
void Login::on_lineEditUname_returnPressed()
{
uName = ui->lineEditUname->text();
ui->lineEditPass->setFocus();
} -
Is this the name (objectName property) you gave to your widget ?
-
The Object name is Login.
-
Then that's the name you have to use for the slot.