It looks like you're new here. If you want to get involved, click one of these buttons!
Hi, Matthias!
Is it possible to intercept layout view closing event and accept or reject it depending on user's choice with dialog box? Some layouts may be huge and requires a lot of time for loading, so such functionality will help to prevent accidental closing.
As far as I see from MainWindow
and LayoutView
documentation, it's not possible.
Comments
No, I'm sorry. There is no such feature in the API.
You can disable or hide the Close menu item. And knowing the Qt widget hierarchy you can basically navigate to the tab widget of the main window to disable the close icon of the tabs. However, this is highly specific and I cannot guarantee this scheme will work in future versions.
Matthias