01-02-2013 01:08 AM
Question is in the subject. When I open a new sheet, let's say with id: sheet, and create a button in that sheet.
Does calling the sheet.close() method from the button, destroy the sheet as well?
Don't want any memory issues etc.
Solved! Go to Solution.
01-02-2013 06:59 AM
The sheet is not destroyed automatically when closed. It's possible to show it again.
It will be destroyed only when it's parent is destroyed. Or you can connect to closed() signal and destroy it there if it's no longer needed.
01-02-2013 07:20 AM
01-02-2013 07:48 AM - edited 01-02-2013 07:49 AM
Generally it's fine to reuse them (just make sure you aren't creating multiple instances).
BUT in Gold SDK there's a bug targetting specifically the Application menu. The app will crash when you show the Sheet for second time from Application menu's ActionItem handler. This thread has the workaround: