Qyoto
4.0.5
Qyoto is a C# language binding for Qt
|
The QChildEvent class contains event parameters for child object events. More...
Public Member Functions | |
QChildEvent (QChildEvent copy) | |
| |
QChildEvent (QEvent.Type type, QObject child) | |
| |
override void | CreateProxy () |
new bool | Added () |
| |
new QObject | Child () |
| |
new bool | Polished () |
| |
new bool | Removed () |
| |
new void | Dispose () |
Public Member Functions inherited from QtCore.QEvent | |
QEvent (QEvent copy) | |
| |
QEvent (QEvent.Type type) | |
| |
new void | Accept () |
| |
new void | Ignore () |
| |
new bool | IsAccepted () |
new void | SetAccepted (bool accepted) |
new bool | Spontaneous () |
| |
new QEvent.Type | type () |
| |
new void | Dispose () |
Protected Member Functions | |
QChildEvent (System.Type dummy) | |
Protected Member Functions inherited from QtCore.QEvent | |
QEvent (System.Type dummy) | |
Properties | |
new QObject | C [get, set] |
Properties inherited from QtCore.QEvent | |
virtual System.IntPtr | SmokeObject [get, set] |
new ushort | T [get, set] |
static new QMetaObject | StaticMetaObject [get] |
The QChildEvent class contains event parameters for child object events.
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().
|
protected |
QtCore.QChildEvent.QChildEvent | ( | QChildEvent | copy | ) |
Constructs a child event object of a particular type for the child.
type can be QEvent::ChildAdded, QEvent::ChildRemoved, QEvent::ChildPolished, or QEvent::ChildRemoved.
See also child().
QtCore.QChildEvent.QChildEvent | ( | QEvent.Type | type, |
QObject | child | ||
) |
Constructs a child event object of a particular type for the child.
type can be QEvent::ChildAdded, QEvent::ChildRemoved, QEvent::ChildPolished, or QEvent::ChildRemoved.
See also child().
new bool QtCore.QChildEvent.Added | ( | ) |
Returns true if type() is QEvent::ChildAdded; otherwise returns false.
new QObject QtCore.QChildEvent.Child | ( | ) |
Returns the child object that was added or removed.
|
virtual |
Reimplemented from QtCore.QEvent.
new void QtCore.QChildEvent.Dispose | ( | ) |
new bool QtCore.QChildEvent.Polished | ( | ) |
Returns true if type() is QEvent::ChildPolished; otherwise returns false.
new bool QtCore.QChildEvent.Removed | ( | ) |
Returns true if type() is QEvent::ChildRemoved; otherwise returns false.
|
getsetprotected |