void QML Value Type

空の値の型。詳細...

詳細な説明

void 型は、undefined を返す JavaScript 関数の型付けにのみ使用されます。例えば

function doThings() : void { console.log("hello") }

これは、このような関数の呼び出しを解析し、関数とその呼び出し元を C++ にコンパイルするためのツールです。

QMLではvoid プロパティを宣言することはできません。

関連項目: QMLの値型

© 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.