[Solved] error: [debug/moc_mainwindow.cpp] Error 1
-
can you post it here? maybe there are some problems.
-
oops, I meant .pro file :)
-
Try to remove .pro.user file at new location and open project again in QtCreator.
-
@szh1 said:
[debug/moc_mainwindow.cpp] Error 1
I know this is a very old post but I've just bumped into it. This could be helpful.
This kind of errors:
[debug/moc_mainwindow.cpp] Error 1
[debug/moc_*cpp] Error 1might come when declaring class data members in the slots / signals section by mistake.
-
@szh1 said:
[debug/moc_mainwindow.cpp] Error 1
I know this is a very old post but I've just bumped into it. This could be helpful.
This kind of errors:
[debug/moc_mainwindow.cpp] Error 1
[debug/moc_*cpp] Error 1might come when declaring class data members in the slots / signals section by mistake.
This post is deleted! -
@MarcosAD said in [Solved] error: [debug/moc_mainwindow.cpp] Error 1:
I know this is a very old post but I've just bumped into it. This could be helpful.
This kind of errors:
[debug/moc_mainwindow.cpp] Error 1
[debug/moc_*cpp] Error 1
might come when declaring class data members in the slots / signals section by mistake.In my case I've got the same error: I use enum members of 3.h file in 1.cpp file, the 3.h file wasn't included into 1.cpp file (and no warning from Qt Creator 12.3.1). Also, when I have the same enum in 1.h and in 3.h files and use it in 1.cpp file.