Forum
Sign Up

How to know document panel is closed

1 year 9 months ago #1 by Liping Liu (Co Wheels Technology Co., Ltd.)
I am using DockPanelManager class to develop multi-document application (QtitanComponentsInstaller2023.1.0_PySide2_Qt5.15.2Win_x64).
I create a new document panel by using insertDocumentPanel API.

Now I have a question:
How I can receive a notice or event when an opend panel is closed?
Attachments:

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #2 by Liping Liu (Co Wheels Technology Co., Ltd.)
Can anyone give me a reply? We are urgent to release our software.

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #3 by Developer Machines
To track changes in the panel state during operation, use these signals:

void DockPanelManager::aboutToShow(DockPanelBase* panel, bool& handled);
void DockPanelManager::aboutToClose(DockPanelBase* panel, bool& handled);
void DockPanelManager::aboutToAutoHide(DockPanelBase* panel, bool& handled);
void DockPanelManager::aboutToFloat(DockPanelBase* panel, bool& handled);

void DockPanelManager::dockPanelActivated(DockWidgetPanel* panel);
void DockPanelManager::dockPanelDeactivated(DockWidgetPanel* panel);

Additionally, you can listen QCloseEvent from the panel.
The following user(s) said Thank You: Liping Liu (Co Wheels Technology Co., Ltd.)

Please Log in or Create an account to join the conversation.

More
  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Moderators: Developer Machines
Time to create page: 0.137 seconds

Developer Newsletter

Join our Developer Machines newsletter to get informed on all the latest releases of the commercial components for Qt.C++, Delphi FireMonkey, updates and general knowledges.

Quick Support

Should you need any additional information about our products or licensing, please contact us at the following email addresses:

  • support@devmachines.com

  • license@devmachines.com

Get in Touch

If you would like to purchase our products or services, but don’t know how to do it the right way, please feel free to contact us:

  • support@devmachines.com( any questions related to our products or services )
  • license@devmachines.com( questions related to licensing )