Error in go to slot in qt project
Hi, not sure if its a qt creator or qt designer problem but when I do go to slot on a push button in my form it creates the slot in the ui header file, which is correct, but then it does a strange thing where the constructor for the slot is also placed in the header file. I don't know why this is but ever since now I can't use a pointer to my mainwindow class as it says mainwindow does not name a type. Firstly anyone know anything about why the go to slot function slot appears in the header file not the .cpp like normal?
Re: Error in go to slot in qt project
What is a "constructor for a slot"?
Re: Error in go to slot in qt project
In general, I would advise against using the go-to-slot functionality because it uses the auto connection features based on object names and that can easily get out of sync when editing the designer file.
Cheers,
_