QDynamicPropertyChangeEvent Class

The QDynamicPropertyChangeEvent class contains event parameters for dynamic property change events. More...

Header: #include <QDynamicPropertyChangeEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core
Inherits: QEvent

Public Functions

QDynamicPropertyChangeEvent(const QByteArray &name)
virtual ~QDynamicPropertyChangeEvent() override
QByteArray propertyName() const

Reimplemented Public Functions

virtual QDynamicPropertyChangeEvent *clone() const override

Protected Functions

QDynamicPropertyChangeEvent(const QDynamicPropertyChangeEvent &)
QDynamicPropertyChangeEvent(QDynamicPropertyChangeEvent &&)
QDynamicPropertyChangeEvent &operator=(const QDynamicPropertyChangeEvent &other)
QDynamicPropertyChangeEvent &operator=(QDynamicPropertyChangeEvent &&)

Detailed Description

Dynamic property change events are sent to objects when properties are dynamically added, changed or removed using QObject::setProperty().

Member Function Documentation

[protected] QDynamicPropertyChangeEvent::QDynamicPropertyChangeEvent(const QDynamicPropertyChangeEvent &)

Default constructs an instance of QDynamicPropertyChangeEvent.

[protected] QDynamicPropertyChangeEvent::QDynamicPropertyChangeEvent(QDynamicPropertyChangeEvent &&)

Move-copy constructor.

QDynamicPropertyChangeEvent::QDynamicPropertyChangeEvent(const QByteArray &name)

Constructs a dynamic property change event object with the property name set to name.

[override virtual] QDynamicPropertyChangeEvent::~QDynamicPropertyChangeEvent()

Destroys the instance of QDynamicPropertyChangeEvent. The destructor is virtual.

[override virtual] QDynamicPropertyChangeEvent *QDynamicPropertyChangeEvent::clone() const

QByteArray QDynamicPropertyChangeEvent::propertyName() const

Returns the name of the dynamic property that was added, changed or removed.

See also QObject::setProperty() and QObject::dynamicPropertyNames().

[protected] QDynamicPropertyChangeEvent &QDynamicPropertyChangeEvent::operator=(const QDynamicPropertyChangeEvent &other)

Copy-assignment operator.

[protected] QDynamicPropertyChangeEvent &QDynamicPropertyChangeEvent::operator=(QDynamicPropertyChangeEvent &&)

Move-assignment operator.

© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.