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も参照してください 。
プロパティ ドキュメント
name : string
このプロパティはスクリプトの名前を保持する。この名前は、ScriptAction が特定のスクリプトをターゲットにするときに使用できる。
ScriptAction::scriptNameも参照のこと 。
script : script
このプロパティは、状態が現在のときに実行するスクリプトを保持する。
© 2026 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.