|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.core.QEvent
com.trolltech.qt.core.QChildEvent
public class QChildEvent
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()
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.trolltech.qt.core.QEvent |
---|
QEvent.Type |
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
---|
QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9 |
Constructor Summary | |
---|---|
QChildEvent(QEvent.Type type,
QObject child)
Constructs a child event object of a particular type for the child. |
Method Summary | |
---|---|
boolean |
added()
Returns true if type() is QEvent::ChildAdded ; otherwise returns false. |
QObject |
child()
Returns the child object that was added or removed. |
static QChildEvent |
fromNativePointer(QNativePointer nativePointer)
|
boolean |
polished()
Returns true if type() is QEvent::ChildPolished ; otherwise returns false. |
boolean |
removed()
Returns true if type() is QEvent::ChildRemoved ; otherwise returns false. |
java.lang.String |
toString()
|
Methods inherited from class com.trolltech.qt.core.QEvent |
---|
accept, ignore, isAccepted, registerEventType, registerEventType, setAccepted, setT, spontaneous, t, type |
Methods inherited from class com.trolltech.qt.QtJambiObject |
---|
dispose, disposed, equals, finalize, reassignNativeResources, tr, tr, tr |
Methods inherited from class com.trolltech.qt.QSignalEmitter |
---|
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread |
Methods inherited from class java.lang.Object |
---|
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.trolltech.qt.QtJambiInterface |
---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
Constructor Detail |
---|
public QChildEvent(QEvent.Type type, QObject child)
type can be QEvent::ChildAdded
, QEvent::ChildRemoved
, QEvent::ChildPolished
, or QEvent::ChildRemoved
.
child()
.
Method Detail |
---|
public final boolean added()
type()
is QEvent::ChildAdded
; otherwise returns false.
public final QObject child()
public final boolean polished()
type()
is QEvent::ChildPolished
; otherwise returns false.
public final boolean removed()
type()
is QEvent::ChildRemoved
; otherwise returns false.
public static QChildEvent fromNativePointer(QNativePointer nativePointer)
public java.lang.String toString()
toString
in class QEvent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |