Module qtjambi
Package io.qt

Class QtArgument

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)
                                           );
    }
}
See Also:
QtUtilities.initializeNativeObject(QtObjectInterface, Stream)