java.lang.Object
io.qt.QtArgument
public final class QtArgument extends Object
QtArgument is used to initialize an interface type or a set of inherited interface types with their non-standard constructors.
Example:
private static class SurfaceObject extends QObject implements QSurface{
// parameter parent is for QObject constructor
// parameter type is for QSurface constructor
public SurfaceObject(QObject parent, SurfaceClass type){
super((QPrivateConstructor)null);
// we need to use the private constructor and initialize the native portion of the object otherwise:
QtUtilities.initializeNativeObject(this,
QtArgument.begin(QObject.class).add(parent)
.begin(QSurface.class).add(type)
);
}
}
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QtArgument.Stream
Argument stream. -
Method Summary
Modifier and Type Method Description static QtArgument.Stream
begin(Class<?> type)