2020-09-15 11:07 AM
So total rookie here. I thought that if I delete a widget and generate code any code related to the deleted widget would also be removed. But in the .cpp file of the screen where the widget used to be, I'm seeing methods called on the object that doesn't exist!
Here's the errors I'm seeing
Here's some of the code that shouldn't be there
Do I have to delete the unneeded code manually?
Solved! Go to Solution.
2020-09-15 01:56 PM
Any code inside gui/ is user-code, meaning that the designer does not remove this, even if widgets on the canvas used by that code are removed. The designer can't know. The user code is disjointed from the gui code inside generated/ - You have to fix the compilation errors yourself, but you can "safely" remove the code that references a component that no longer exists =)
/Martin
2020-09-15 01:56 PM
Any code inside gui/ is user-code, meaning that the designer does not remove this, even if widgets on the canvas used by that code are removed. The designer can't know. The user code is disjointed from the gui code inside generated/ - You have to fix the compilation errors yourself, but you can "safely" remove the code that references a component that no longer exists =)
/Martin
2020-09-15 02:15 PM
Okay, thanks Martin!
2020-09-15 02:22 PM
No problem!