Obsolete Members for QJSValue
QJSValue 클래스의 다음 멤버는 더 이상 사용되지 않습니다. 이들은 이전 소스 코드의 작동을 유지하기 위해 제공됩니다. 새 코드에서는 사용하지 않는 것이 좋습니다.
공용 함수
(deprecated in 6.9) bool | isVariant() const |
멤버 함수 문서
[deprecated in 6.9]
bool QJSValue::isVariant() const
이 함수는 6.9부터 더 이상 사용되지 않습니다. 새 코드에서 이 함수를 사용하지 않는 것이 좋습니다.
QJSValue 이 변형 값인 경우 참을 반환하고, 그렇지 않으면 거짓을 반환합니다.
경고: 이 함수는 예기치 않은 결과를 초래할 수 있습니다. 변형 값은 매우 제한된 경우에만 QJSEngine 에 의해 구성됩니다. Qt 5.14 이전에는 QJSEngine::toScriptValue 이 해당 ECMAScript 유형 대신 더 많은 유형에 대해 생성했습니다. toVariant 을 통해 isVariant
이 거짓을 반환하는 많은 값에 대해 유효한 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.