|
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? |
Answered by
char101
Jan 27, 2025
Replies: 1 comment
|
Enable feature |
0 replies
Answer selected by
mrawd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Enable feature
CustomCloseHandlingthen handle thecloseRequestedsignal.