- All Implemented Interfaces:
QtObjectInterface,Cloneable
- Direct Known Subclasses:
QBindable,QBooleanBindable,QByteBindable,QCharBindable,QDoubleBindable,QFloatBindable,QIntBindable,QLongBindable,QShortBindable
Uniform interface over bindable properties like QProperty\<T\> and QObjectBindableProperty of any type T
Java wrapper for Qt class QUntypedBindable
- Since:
- This class was introduced in Qt 6.0.
-
Constructor Summary
ConstructorsConstructorDescriptionQUntypedBindable(QUntypedBindable other) SeeQUntypedBindable::QUntypedBindable(QUntypedBindable) -
Method Summary
Modifier and TypeMethodDescriptionfinal QPropertyNotifierRegisters the given functor f as a callback that shall be called whenever the value of the bindable changes.binding()clone()Creates and returns a copy of this object.protected final QUntypedPropertyDatadata()SeeQUntypedBindable::data final booleanprotected final io.qt.core.QBindableInterfaceiface()SeeQUntypedBindable::iface final booleanSeeQUntypedBindable::isBindable()const final booleanfinal booleanisValid()final QMetaTypemetaType()final voidobserve(QPropertyObserver observer) SeeQUntypedBindable::observe(QPropertyObserver*)const final QPropertyChangeHandlerRegisters the given functor f as a callback that shall be called whenever the value of the bindable changes.final booleansetBinding(QUntypedPropertyBinding binding) protected final voidsetData(QUntypedPropertyData data) SeeQUntypedBindable::data protected final voidsetIface(io.qt.core.QBindableInterface iface) SeeQUntypedBindable::iface final QPropertyChangeHandlerSubscribes the given functor f as a callback that is called immediately and whenever the value of the bindable changes in the future.Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QUntypedBindable
public QUntypedBindable() -
QUntypedBindable
See
QUntypedBindable::QUntypedBindable(QUntypedBindable) - Parameters:
other-
-
-
Method Details
-
binding
- Returns:
-
hasBinding
- Returns:
-
isBindable
See
QUntypedBindable::isBindable()const - Returns:
-
isReadOnly
- Returns:
- Since:
- This function was introduced in Qt 6.1.
-
isValid
- Returns:
-
makeBinding
- Returns:
-
metaType
- Returns:
- Since:
- This function was introduced in Qt 6.2.
-
observe
See
QUntypedBindable::observe(QPropertyObserver*)const - Parameters:
observer-
-
setBinding
- Parameters:
binding-- Returns:
-
takeBinding
- Returns:
- Since:
- This function was introduced in Qt 6.1.
-
setData
See
QUntypedBindable::data - Parameters:
data-
-
data
See
QUntypedBindable::data - Returns:
-
setIface
See
QUntypedBindable::iface - Parameters:
iface-
-
iface
See
QUntypedBindable::iface - Returns:
-
onValueChanged
Registers the given functor f as a callback that shall be called whenever the value of the bindable changes.
The returned property change handler object keeps track of the registration. As long as the change handler is alive i.e. as long as a reference to the
QPropertyChangeHandlerinstance exists, the callback remains installed. When the garbage collection deletes the instance, the callback is de-registered.- Parameters:
f-- Returns:
- property change handler
- See Also:
-
subscribe
Subscribes the given functor f as a callback that is called immediately and whenever the value of the bindable changes in the future.- Parameters:
f-- Returns:
- property change handler
- See Also:
-
addNotifier
Registers the given functor f as a callback that shall be called whenever the value of the bindable changes.
The returned property notifier object keeps track of the registration. As long as the notifier is alive i.e. as long as a reference to the
QPropertyNotifierinstance exists, the callback remains installed. When the garbage collection deletes the instance, the callback is de-registered.- Parameters:
f-- Returns:
- property notifier
- See Also:
-
clone
Creates and returns a copy of this object.
See
QUntypedBindable::QUntypedBindable(QUntypedBindable)
-