Inheritance |
|
This class inherits from the QtWidgets.QWidget
class.
Methods ¶
__init__(parent, win_floating_panel)
Creates and returns a new WindowOverlay object. WindowOverlay is a transparent Qt window used for displaying read-only information on top of its parent window.
This class cannot be instantiated directly, you need to derive a new class from it to implement a usable overlay.
parent
A mandatory Qt window object to parent the overlay window.
win_floating_panel
The overlay window container. If there is no floating panel passed in (None), the overlay window container defaults to the Houdini main window.
windowContainer()
Returns the window container.
onInitWindow(event)
Called when the window is being initialized. Can be overriden by leaf classes.
onParentWindowEvent(event)
Called when a window event is sent to the parent.
onContainerWindowEvent(event)
Called when a window event is sent to the container window
event
Supported events:
-
QtCore.QEvent.Move
-
QtCore.QEvent.Resize
-
-
QtCore.QEvent.WindowStateChange
-
QtCore.QEvent.NonClientAreaMouseButtonPress
-
-
QtCore.QEvent.NonClientAreaMouseButtonRelease