Solved Qt 5.7 moc file missing
-
Hi,
I rebuilt my project and I noticed that there are no moc files were generated and as a result I get tons of error messages. I already ran clean project, rebuild project and qmake but nothing happened. How to fix this?
Thank you for your help. -
The class declaration looks like this:
namespace Ui { class Additem; } class Additem : public QDialog { Q_OBJECT public: explicit Additem(QWidget *parent = 0); ~Additem();
-
Hi,
You should add which version of Qt you are using, your platform and compiler.
-
Qt 5.7.0., Windows 10, MinGW_32
-
Now I also receive an error message:
"C:\Programming\Projects\Folkfriends_1_0\additem.cpp:75: error: no matching function for call to 'Additem::connect(QLineEdit*&, const char*, Additem*, const char*)'
connect(ui->LineEdit_Name, SIGNAL(editingFinished()),this, SLOT(readAndValidate ()));"I get the same error message for all Signals and Slots. They all worked yesterday.
-
Did you try to delete the build directory and do a complete rebuild (after running qmake)?
-
Yes but it didn't work. It happens only with this project.
-
Hi, perhaps your Windows 10 was updated yesterday?
-
No. There was no update for it yesterday.
-
Try deleting the directory build_** generated by the compiler , and try to compile again ...
-
I already deleted build but nothing changed when I rebuilt it.
-
did you try running moc.exe on your .h files manually?
-
@VRonin
How to run them manually on them? -
@gabor53
The problem was a function I managed to name void connect() which clearly clashed with signals and slots.