|
|
@@ -480,6 +480,12 @@ Functions
|
|
|
Adds a dock with the widget to the UI with a toggle in the Docks
|
|
|
menu.
|
|
|
|
|
|
+ When the dock is closed, a custom QEvent of type `QEvent::User + QEvent::Close`
|
|
|
+ is sent to the widget to enable it to react to the event (e.g., unload elements
|
|
|
+ to save resources).
|
|
|
+ A generic QShowEvent is already sent by default when the widget is being
|
|
|
+ shown (e.g., dock opened).
|
|
|
+
|
|
|
Note: Use :c:func:`obs_frontend_remove_dock` to remove the dock
|
|
|
and the id from the UI.
|
|
|
|