I deleted a widget (progress bar) now I get a compiler error - seems the old widgets are still attempting to be initialized.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
- Labels:
-
TouchGFX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-15 1: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-15 1: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-15 2:15 PM
Okay, thanks Martin!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-15 2:22 PM
No problem!
