QChildEvent¶
The QChildEvent
class contains event parameters for child object events. More…
Synopsis¶
Functions¶
Detailed Description¶
Child events are sent immediately to objects when children are added or removed.
In both cases you can only rely on the child being a QObject
(or, if isWidgetType()
returns true
, a QWidget
). This is because in the ChildAdded
case the child is not yet fully constructed; in the ChildRemoved
case it might have already been destructed.
The handler for these events is childEvent()
.
- class PySide6.QtCore.QChildEvent(type, child)¶
PySide6.QtCore.QChildEvent(arg__1)
- Parameters
arg__1 –
PySide6.QtCore.QChildEvent
type –
Type
child –
PySide6.QtCore.QObject
Constructs a child event object of a particular type
for the child
.
type
can be ChildAdded
, ChildRemoved
, or ChildPolished
.
See also
- PySide6.QtCore.QChildEvent.added()¶
- Return type
bool
Returns true
if type()
is ChildAdded
; otherwise returns false.
- PySide6.QtCore.QChildEvent.child()¶
- Return type
Returns the child object that was added or removed.
- PySide6.QtCore.QChildEvent.polished()¶
- Return type
bool
Returns true
if type()
is ChildPolished
; otherwise returns false.
- PySide6.QtCore.QChildEvent.removed()¶
- Return type
bool
Returns true
if type()
is ChildRemoved
; otherwise returns false.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.