QML グローバルオブジェクト

QML の JavaScript ホスト環境は、以下のホストオブジェクトと関数を実装しています。これらは組み込み機能であるため、QML に読み込まれた任意の JavaScript コードから、追加のインポートを行うことなく使用できます:

注: globalObject() 関数を使用して、QQmlEngine のグローバルオブジェクトを変更することはできません 。詳細については、「JavaScript 環境の制限」を参照してください。

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