![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtCore More...
#include <qproperty.h>
Public Member Functions | |
Q_NODISCARD_CTOR | QPropertyChangeHandler (Functor handler) |
template<typename Property, QtPrivate::IsUntypedPropertyData< Property > = true> | |
Q_NODISCARD_CTOR | QPropertyChangeHandler (const Property &property, Functor handler) |
![]() | |
constexpr | QPropertyObserver ()=default |
QPropertyObserver (QPropertyObserver &&other) noexcept | |
QPropertyObserver & | operator= (QPropertyObserver &&other) noexcept |
~QPropertyObserver () | |
template<typename Property, QtPrivate::IsUntypedPropertyData< Property > = true> | |
void | setSource (const Property &property) |
void | setSource (const QtPrivate::QPropertyBindingData &property) |
Additional Inherited Members | |
![]() | |
enum | ObserverTag { ObserverNotifiesBinding , ObserverNotifiesChangeHandler , ObserverIsPlaceholder } |
![]() | |
using | ChangeHandler = void (*)(QPropertyObserver*, QUntypedPropertyData *) |
![]() | |
QPropertyObserver (ChangeHandler changeHandler) | |
QUntypedPropertyData * | aliasedProperty () const |
\inmodule QtCore
The QPropertyChangeHandler class controls the lifecycle of change callback installed on a QProperty.
QPropertyChangeHandler<Functor> is created when registering a callback on a QProperty to listen to changes to the property's value, using QProperty::onValueChanged and QProperty::subscribe. As long as the change handler is alive, the callback remains installed.
A handler instance can be transferred between C++ scopes using move semantics.
Definition at line 292 of file qproperty.h.
|
inline |
Definition at line 297 of file qproperty.h.
References QPropertyChangeHandler().
Referenced by QPropertyChangeHandler(), QPropertyChangeHandler(), QObjectBindableProperty< Class, T, Offset, Signal >::onValueChanged(), QObjectCompatProperty< Class, T, Offset, Setter, Signal, Getter >::onValueChanged(), QProperty< T >::onValueChanged(), and QUntypedBindable::onValueChanged().
|
inline |
Definition at line 308 of file qproperty.h.
References QPropertyChangeHandler().