All of a sudden when I add a button and do go to slot, the declaration and function for the slot is added in the .h header file and the function is not called. I have several ui forms where the slot is declared in .h and function for the slot is created in the cpp.
I've tried renaming the button, deleted and created a new one but it still creates the function in the header file alone. Manually writing the slot in the cpp doesn't work either, the program doesn't even compile it, it just closes when I click the button.
Thanks in advance for the help
EDIT: Manually writing the function in .cpp does work but I would still like to know why qt creates the function in .h header rather than .cpp source code.
Bookmarks