![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\qmltype PropertyChanges \inqmlmodule QtQuick More...
Additional Inherited Members | |
Public Types inherited from QQuickStateActionEvent | |
enum | EventType { Script , SignalHandler , ParentChange , AnchorChanges } |
\qmltype PropertyChanges \inqmlmodule QtQuick
Describes new property bindings or values for a state.
PropertyChanges is used to define the property values or bindings in a \l State. This enables an item's property values to be changed when it \l {Qt Quick States}{changes between states}.
To create a PropertyChanges object, bind to properties of the target item like you would bind to local properties. This way you can define the new property values or bindings. For example:
\codeline
When the mouse is pressed, the \l Rectangle changes to the resized state. In this state, the PropertyChanges object sets the rectangle's color to blue and the height
value to that of container.height
.
Note this automatically binds rect.height
to container.height
in the resized state. If a property binding should not be established, and the height should just be set to the value of container.height
at the time of the state change, set the \l explicit property to true
.
A PropertyChanges object can also override the default signal handler for an object to implement a signal handler specific to the new state:
\qml PropertyChanges { myMouseArea.onClicked: doSomethingDifferent() } \endqml
Definition at line 118 of file qquickpropertychanges.cpp.
|
inline |
Definition at line 121 of file qquickpropertychanges.cpp.
|
inline |
Definition at line 122 of file qquickpropertychanges.cpp.
|
inline |
Definition at line 121 of file qquickpropertychanges.cpp.
|
inline |
Definition at line 122 of file qquickpropertychanges.cpp.
|
inlineoverridevirtual |
Reimplemented from QQuickStateActionEvent.
Definition at line 146 of file qquickpropertychanges.cpp.
References saveCurrentValues().
|
inlineoverridevirtual |
Reimplemented from QQuickStateActionEvent.
Definition at line 146 of file qquickpropertychanges.cpp.
|
inlineoverridevirtual |
Reimplemented from QQuickStateActionEvent.
Definition at line 131 of file qquickpropertychanges.cpp.
|
inlineoverridevirtual |
Reimplemented from QQuickStateActionEvent.
Definition at line 131 of file qquickpropertychanges.cpp.
|
inlineoverridevirtual |
Reimplemented from QQuickStateActionEvent.
Definition at line 135 of file qquickpropertychanges.cpp.
|
inlineoverridevirtual |
Reimplemented from QQuickStateActionEvent.
Definition at line 135 of file qquickpropertychanges.cpp.
|
inlineoverridevirtual |
Reimplemented from QQuickStateActionEvent.
Definition at line 162 of file qquickpropertychanges.cpp.
|
inlineoverridevirtual |
Reimplemented from QQuickStateActionEvent.
Definition at line 162 of file qquickpropertychanges.cpp.
|
inlineoverridevirtual |
Reimplemented from QQuickStateActionEvent.
Definition at line 145 of file qquickpropertychanges.cpp.
|
inlineoverridevirtual |
Reimplemented from QQuickStateActionEvent.
Definition at line 145 of file qquickpropertychanges.cpp.
|
inlineoverridevirtual |
Reimplemented from QQuickStateActionEvent.
Definition at line 136 of file qquickpropertychanges.cpp.
|
inlineoverridevirtual |
Reimplemented from QQuickStateActionEvent.
Definition at line 136 of file qquickpropertychanges.cpp.
|
inlineoverridevirtual |
Reimplemented from QQuickStateActionEvent.
Definition at line 155 of file qquickpropertychanges.cpp.
|
inlineoverridevirtual |
Reimplemented from QQuickStateActionEvent.
Definition at line 155 of file qquickpropertychanges.cpp.
|
inlineoverridevirtual |
Reimplemented from QQuickStateActionEvent.
Definition at line 158 of file qquickpropertychanges.cpp.
Referenced by copyOriginals(), and saveOriginals().
|
inlineoverridevirtual |
Reimplemented from QQuickStateActionEvent.
Definition at line 158 of file qquickpropertychanges.cpp.
|
inlineoverridevirtual |
Reimplemented from QQuickStateActionEvent.
Definition at line 140 of file qquickpropertychanges.cpp.
References saveCurrentValues().
|
inlineoverridevirtual |
Reimplemented from QQuickStateActionEvent.
Definition at line 140 of file qquickpropertychanges.cpp.
|
inlineoverridevirtual |
Implements QQuickStateActionEvent.
Definition at line 124 of file qquickpropertychanges.cpp.
|
inlineoverridevirtual |
Implements QQuickStateActionEvent.
Definition at line 124 of file qquickpropertychanges.cpp.
QQmlRefPointer< QQmlBoundSignalExpression > QQuickReplaceSignalHandler::expression |
Definition at line 127 of file qquickpropertychanges.cpp.
QQmlProperty QQuickReplaceSignalHandler::property |
Definition at line 126 of file qquickpropertychanges.cpp.
QQmlRefPointer< QQmlBoundSignalExpression > QQuickReplaceSignalHandler::reverseExpression |
Definition at line 128 of file qquickpropertychanges.cpp.
QQmlRefPointer< QQmlBoundSignalExpression > QQuickReplaceSignalHandler::rewindExpression |
Definition at line 129 of file qquickpropertychanges.cpp.