Roland Posted August 16, 2021 Share Posted August 16, 2021 All Create functions in the GUI part are returning Widget's as shared pointers. Does this mean that the AppKit also owns the returned Widget internally and destroys them internally att program exit? Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
Josh Posted August 17, 2021 Share Posted August 17, 2021 A widget is held onto by its parent widget. To free a widget, call SetParent(NULL) and make sure there is no variable holding onto the widget. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.