Module qtjambi
Package io.qt.core

Class QObject.QComputedProperty<T>

All Implemented Interfaces:
QtObjectInterface
Enclosing class:
QObject

public final class QObject.QComputedProperty<T>
extends QUntypedPropertyData

The QComputedProperty class is a template class for externally computed/stored values. Create an instance of QComputedProperty by providing a value supplier.

Example:

private final QComputedProperty<QColor> color = new QComputedProperty<>(this::computeOptimalColor);

The Java type QComputedProperty corresponds to the C++ type QObjectComputedProperty.

For primitive-typed implementations see: