You should have a file called moc_tcamera.cpp
that implements the missing character in the assembly directory.
If this is not the case, you should โrun qmakeโ and โRestoreโ your project (both actions are in the Qt Creator Build menu).
Why the error occurred:
qmake adds moc (Qt meta object compiler) to the Makefile for all source files containing Q_OBJECT
or Q_GADGET
, such a file is called "mocable". After a file is detected as mosaic or unfocused, this status does not change until qmake is restarted.
QtCreator starts qmake on its own when a .pro file changes (for example, when adding or removing a file).
This means that you probably compiled the project once without the Q_OBJECT
macro in the Q_OBJECT
file and then added this macro. And since you do not need a meta object until you add a call to connect
, VC ++ has not tried to resolve missing characters.
source share