BUMP "Go to slot" issue...
-
I am NOT asking to have explanation / reread of the posted picture.
I am asking for solution
what needs to be changed / checked to STOP Qt Designer to
use UNUSED / DELETED .cpp file?REPEAT
"Go to slot" works putting declaration into correct header
BUT it puts definition in UNUSED ( the warning say so ) .cpp file.the definition shoud go into USED .cpp file ....
what / where is the instruction to tell QtDesigner the WRONG unused file ?
Background
Due to some unwanted text in .cpp file I successfully created a copy. Removed the unwanted .cpp from .pro file and compiled and run...Issue
I have a working mdiArea widget in this subproject.
Using QDesigner "Action Editor" I select a menu and attempt to use "Go to slot " option...Here is the result:
The "slot" gets properly assigned in class, however , the function / method definition / implementation ends in the original .cpp file.There is more...
it gets inserted in #ifdef #endif UNUSED block.Please observe the "Warning" on top of the screen shot.
( this is UNUSED .cpp file ! )I am asking for (reasonable ) SUGGESTION(S) how to resolve this annoying problem.
I did check , and my headers are correct .h , and ui_
Starting from scratch is not an option.
Thank you
-
@AnneRanch
The first warning says it all... Your copied file is not part of your project.
If your current file is in the same directory as your removed file was, simply add the name of your new, copied
mainwindow_Bluetooth.cpp
to your pro in thecpp
section.Edit:
The second warning even says that this file is not in your project dir. Better move it to the place where you removed the "old" code file