StateChangeScript QML Type
状態でのスクリプトの実行方法を指定します。詳細...
Import Statement: | import QtQuick |
プロパティ
詳細説明
StateChangeScript は、ステートに入ると実行されます。オプションで、ScriptAction を使用して、StateChangeScript を実行する遷移のポイントを指定できます。
State { name: "state1" StateChangeScript { name: "myScript" script: doStateStuff(); } // ... } // ... Transition { to: "state1" SequentialAnimation { NumberAnimation { /* ... */ } ScriptAction { scriptName: "myScript" } NumberAnimation { /* ... */ } } }
ScriptActionも参照してください 。
プロパティ Documentation
name : string |
このプロパティは、スクリプトの名前を保持します。この名前を使用して、ScriptAction で特定のスクリプトをターゲットにすることができます。
script : script |
このプロパティは、状態が現在のときに実行するスクリプトを保持します。
© 2025 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.