java.lang.Object
io.qt.QtObject
io.qt.qml.QQmlListProperty<T>
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public final class QQmlListProperty<T extends QtObjectInterface>
extends QtObject
implements Cloneable
The QQmlListProperty class allows applications to expose list-like properties of QObject-derived classes to QML.
Java wrapper for Qt's class QQmlListProperty
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Return the element at position index in the list property.static interface
Replace the element at position index in the list property with value.Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ConstructorDescriptionQQmlListProperty
(QObject o, QList<T> list) QQmlListProperty
(QObject o, QList<T> list, boolean readonly) This constructor allows you to create a read-only property from a QList.QQmlListProperty
(Class<T> elementType, O o, BiConsumer<O, T> appendFunction, ToLongFunction<O> countFunction, QQmlListProperty.AtFunction<O, T> atFunction, Consumer<O> clearFunction) This constructor creates a writable QQmlListProperty with given access methods.QQmlListProperty
(Class<T> elementType, O o, BiConsumer<O, T> appendFunction, ToLongFunction<O> countFunction, QQmlListProperty.AtFunction<O, T> atFunction, Consumer<O> clearFunction, QQmlListProperty.ReplaceFunction<O, T> replaceFunction, Consumer<O> removeLastFunction) This constructor creates a writable QQmlListProperty with given access methods.QQmlListProperty
(Class<T> elementType, O o, ToLongFunction<O> countFunction, QQmlListProperty.AtFunction<O, T> atFunction) This constructor creates a read-only QQmlListProperty with given access methods. -
Method Summary
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QQmlListProperty
public QQmlListProperty() -
QQmlListProperty
-
QQmlListProperty
This constructor allows you to create a read-only property from a QList.See QQmlListProperty::QQmlListProperty(QObject*, QList<T *>*)
-
QQmlListProperty
public QQmlListProperty(Class<T> elementType, O o, ToLongFunction<O> countFunction, QQmlListProperty.AtFunction<O, T> atFunction) This constructor creates a read-only QQmlListProperty with given access methods. The access functions should operate on the same data source (e.g. list).See QQmlListProperty::QQmlListProperty(QObject *, void *, CountFunction, AtFunction)
-
QQmlListProperty
public QQmlListProperty(Class<T> elementType, O o, BiConsumer<O, T> appendFunction, ToLongFunction<O> countFunction, QQmlListProperty.AtFunction<O, T> atFunction, Consumer<O> clearFunction) This constructor creates a writable QQmlListProperty with given access methods. The access functions should operate on the same data source (e.g. list). -
QQmlListProperty
public QQmlListProperty(Class<T> elementType, O o, BiConsumer<O, T> appendFunction, ToLongFunction<O> countFunction, QQmlListProperty.AtFunction<O, T> atFunction, Consumer<O> clearFunction, QQmlListProperty.ReplaceFunction<O, T> replaceFunction, Consumer<O> removeLastFunction) This constructor creates a writable QQmlListProperty with given access methods. The access functions should operate on the same data source (e.g. list).
-
-
Method Details