Modifiche apportate a Qt SQL
Qt 6 sono il risultato di uno sforzo mirato a rendere il framework più efficiente e facile da usare.
Cerchiamo di mantenere la compatibilità binaria e del codice sorgente per tutte le API pubbliche in ogni versione. Tuttavia, alcune modifiche erano inevitabili nell’ottica di rendere Qt un framework migliore.
In questa sezione riassumiamo tali modifiche in Qt SQL e forniamo indicazioni su come gestirle.
La classe QSqlQuery
Firma di `boundValues()`
Il tipo di ritorno di boundValues() è stato modificato da QMap<QString, QVariant> a QVariantList. È possibile fare affidamento sull’ordine, che corrisponderà a quello dei binding nella query preparata. Modificare il codice come segue:
in:
© 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.