ClosePage(Pg) It can only be removed from the stack, but it will not be destroyed. How can I destroy a page that is no longer in use? This page is not displayed at the top?
Lol that's a bit of a spooky coincidence - I've just spent a half-hour battling LibreOffice Writer trying to delete blank pages that refused to go without a fight.
Pages are different layouts generated according to different scenes. There are many views in the pages. When loading another scene, there are a lot of things to deal with, and the layout needs to be regenerated. So you want to directly destroy the original page and create a new one according to the scene