The QChildEvent class contains event parameters for child object events. More...
|CMake:||find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
|qmake:||QT += core|
|QChildEvent(QEvent::Type type, QObject *child)|
|QObject *||child() const|
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 QObject::isWidgetType() returns
true, a QWidget). This is because in the QEvent::ChildAdded case the child is not yet fully constructed; in the QEvent::ChildRemoved
case it might have already been destructed.
The handler for these events is QObject::childEvent().
Constructs a child event object of a particular type for the child.
type can be QEvent::ChildAdded, QEvent::ChildRemoved, or QEvent::ChildPolished.
See also child().
true if type() is QEvent::ChildAdded; otherwise returns false.
Returns the child object that was added or removed.
true if type() is QEvent::ChildPolished; otherwise returns false.
true if type() is QEvent::ChildRemoved; otherwise returns false.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: