Obsolete Members for QSqlDatabase
Los siguientes miembros de la clase ` QSqlDatabase ` están obsoletos. Se incluyen para que el código fuente antiguo siga funcionando. Recomendamos encarecidamente no utilizarlos en código nuevo.
Funciones públicas
(deprecated in 6.6) QSqlQuery | exec(const QString &query = QString()) const |
Documentación de las funciones de miembro
[deprecated in 6.6] QSqlQuery QSqlDatabase::exec(const QString &query = QString()) const
Esta función está obsoleta desde la versión 6.6. Recomendamos encarecidamente no utilizarla en código nuevo.
Ejecuta una instrucción SQL en la base de datos y devuelve un objeto ` QSqlQuery `. Utiliza ` lastError()` para obtener información sobre los errores. Si ` query ` está vacío, se devuelve una consulta vacía e inválida y ` lastError()` no se ve afectado.
Utilice en su lugar ` QSqlQuery::exec()` ().
© 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.