Q_OBJECT macro not working
-
wrote on 23 Feb 2023, 11:58 last edited by
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?
@ugo_
I'm failing to seeCMAKE_AUTOMOC
in your cmake file, did you forget to enable moc for your project?Nope, I'm just blind :D
2/4