Doc: QAction Object ownership in QDockWidget::toggleViewAction()

QAction object returned by QDockWidget::toggleViewAction() is owned by
the QDockWidget. QAction object is deleted when the QDockWidget is
destroyed.

Fixes: QTBUG-70171
Pick-to: 6.8 6.5
Change-Id: I279366209228c88241e3bf70c17c117a2bf91f40
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Dheerendra Purohit 2024-11-22 18:55:30 +05:30 committed by Volker Hilsheimer
parent ef8bf4c2cf
commit f5e127c842

View File

@ -1736,6 +1736,9 @@ bool QDockWidget::event(QEvent *event)
The action's text is set to the dock widget's window title. The action's text is set to the dock widget's window title.
The QAction object is owned by the QDockWidget. It will be automatically
deleted when the QDockWidget is destroyed.
\note The action can not be used to programmatically show or hide the dock \note The action can not be used to programmatically show or hide the dock
widget. Use the \l visible property for that. widget. Use the \l visible property for that.