class QChildWindowEvent

The QChildWindowEvent class contains event parameters for child window changes. More

Inheritance diagram of PySide6.QtGui.QChildWindowEvent

Added in version 6.7.

Synopsis

Methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description

Child window events are sent to windows when children are added or removed.

In both cases you can only rely on the child being a QWindow — not any subclass thereof. This is because in the QEvent::ChildWindowAdded case the subclass is not yet fully constructed, and in the QEvent::ChildWindowRemoved case it might have already been destructed.

__init__(arg__1)
Parameters:

arg__1QChildWindowEvent

__init__(type, childWindow)
Parameters:

Constructs a child window event object of a particular type for the childWindow.

type can be QEvent::ChildWindowAdded or QEvent::ChildWindowRemoved.

See also

child()

child()
Return type:

QWindow

Returns the child window that was added or removed.