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 | QPropertyNotifier ()=default |
template<typename Functor > | |
Q_NODISCARD_CTOR | QPropertyNotifier (Functor handler) |
template<typename Functor , typename Property , QtPrivate::IsUntypedPropertyData< Property > = true> | |
Q_NODISCARD_CTOR | QPropertyNotifier (const Property &property, Functor handler) |
Public Member Functions inherited from QPropertyObserver | |
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 | |
Public Types inherited from QPropertyObserverBase | |
enum | ObserverTag { ObserverNotifiesBinding , ObserverNotifiesChangeHandler , ObserverIsPlaceholder } |
Public Attributes inherited from QPropertyObserverBase | |
Protected Types inherited from QPropertyObserverBase | |
using | ChangeHandler = void (*)(QPropertyObserver*, QUntypedPropertyData *) |
Protected Member Functions inherited from QPropertyObserver | |
QPropertyObserver (ChangeHandler changeHandler) | |
QUntypedPropertyData * | aliasedProperty () const |
\inmodule QtCore
The QPropertyNotifier class controls the lifecycle of change callback installed on a QProperty.
QPropertyNotifier is created when registering a callback on a QProperty to listen to changes to the property's value, using QProperty::addNotifier. 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 319 of file qproperty.h.
|
default |
|
inline |
Definition at line 327 of file qproperty.h.
|
inline |
Definition at line 339 of file qproperty.h.