Obsolete Members for QJSValue

クラスQJSValue の以下のメンバーは非推奨です。これらは古いソース・コードの動作を維持するために提供されています。新しいコードでは使用しないことを強くお勧めします。

パブリック関数

(deprecated in 6.9) bool isVariant() const

メンバ関数ドキュメント

[deprecated in 6.9] bool QJSValue::isVariant() const

この関数は6.9から非推奨となった。新しいコードでは使わないことを強くお勧めします。

このQJSValue が variant 値であれば true を返し、そうでなければ false を返します。

そうでなければ false を返します: この関数は予期しない結果を与える可能性が高い。バリアント値がQJSEngine によって構築されるのは、非常に限られた場合だけです。これはQt 5.14以前では異なっており、ECMAScriptの型に対応するのではなく、QJSEngine::toScriptValueisVariant が false を返す多くの値に対して、toVariant を介して有効なQVariant を得ることができます。

toVariant()も参照してください

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