fix(ui): delete order when toolbar manage views
Description
Since #981 (closed) toolbar was deleted first. Doing this can lead to issue when toolbar contains service that manage views.
The view is deleted at "toolbar stage" and result to double delete later on.
Steps to reproduce
Use SStarter to start a SConfigController in a toolbar.
Proposal
Use deleteLater()
in QtContainer class to get rid of the deletion order.
Functional specifications
- stop and deletion should not crash whatever to creation/start order
Technical specifications
-
deleteLater()
requires usage of QPointer for each qt container class.