Obsolete Members for QJSValue
Los siguientes miembros de la clase ` QJSValue ` están obsoletos. Se proporcionan para que el código fuente antiguo siga funcionando. Recomendamos encarecidamente no utilizarlos en código nuevo.
Funciones públicas
(deprecated in 6.9) bool | isVariant() const |
Documentación de las funciones de miembro
[deprecated in 6.9] bool QJSValue::isVariant() const
Esta función está obsoleta desde la versión 6.9. Recomendamos encarecidamente no utilizarla en código nuevo.
Devuelve «true» si este « QJSValue » es un valor variante; en caso contrario, devuelve «false».
Advertencia: Es probable queesta función dé resultados inesperados. Un valor de variante solo se construye mediante ` QJSEngine ` en un número muy limitado de casos. Esto solía ser diferente antes de Qt 5.14, donde ` QJSEngine::toScriptValue ` los habría creado para más tipos en lugar de los tipos ECMAScript correspondientes. Puedes obtener un ` QVariant ` válido mediante ` toVariant ` para muchos valores para los que ` isVariant ` devuelve «false».
Véase también toVariant().
© 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.