-
With a DockWidgetDeleteOnClose feature set for the DockWidget object, we do get dockWidgetAboutToBeRemoved signal when user clicks on X in the tab. Now, users might need to be asked if they really want to close this tab by popping a dialog box of some kind. If the user changes their mind at that point, what is the best way to stop widget from going away and retain it there? Another way to ask about the same issue is how to be able to ask user if dock widget should be closed when they click on the X button from the tab and cancel their request if they change their minds about closing it in the first place? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Enable feature |
Beta Was this translation helpful? Give feedback.
Enable feature
CustomCloseHandling
then handle thecloseRequested
signal.