Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to undo the changes in the mock file?
kishore_hemmady last edited by
I was trying something,I got a message saying your moc file has changed I saved it.Now I'm getting errors.How to fix this?I want to undo the save in the moc file
I want to undo the save in the moc file
simply delete the file. It will be recreated automatically during the next build. Thus you never should edit a moc file, since it is created automatically/dynamically
kishore_hemmady last edited by kishore_hemmady
I deleted the moc files.Its again creating those files only.Im getting this error
/home/kishor/build-MARS-GUI-Desktop_Qt_5_9_3_GCC_64bit-Debug/moc_mainwindow.cpp:105: error: undefined reference to `MainWindow::receiver(QString)'
:-1: error: collect2: error: ld returned 1 exit status
@kishore_hemmady rebuild completely
are you sure that there is an implementation of that method in the cpp file?!