Cambios en Qt SQL
Qt 6 son el resultado de un esfuerzo deliberado por hacer que el marco sea más eficiente y fácil de usar.
Intentamos mantener la compatibilidad binaria y de código fuente para todas las API públicas en cada versión. Sin embargo, algunos cambios eran inevitables con el fin de convertir a Qt en un marco de trabajo mejor.
En este tema resumimos esos cambios en Qt SQL y ofrecemos orientación para gestionarlos.
La clase QSqlQuery
Firma de `boundValues()`
El tipo de retorno de boundValues() ha cambiado de QMap<QString, QVariant> a QVariantList. Se puede confiar en el orden, ya que seguirá el orden de los enlaces en la consulta preparada. Modifica el código como se indica a continuación:
por:
© 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.