Q_OBJECT macro not working
Unsolved
General and Desktop
-
I am using cmake and vscode, i can't get MOC to work, details in this SO link: https://stackoverflow.com/questions/75544361/q-object-label-not-working-undefined-reference-to-vtable
-
I am using cmake and vscode, i can't get MOC to work, details in this SO link: https://stackoverflow.com/questions/75544361/q-object-label-not-working-undefined-reference-to-vtable
-
@ugo_
Did you delete out all the files in the build output directory, and re-run cmake followed by building the project for the first time? -
@JonB I solved the issue by including the header in the add_executable command, which by the way I consider a very ugly way to do it, do you know any other way?