Obsolete Members for QSqlDatabase
I seguenti membri della classe ` QSqlDatabase ` sono deprecati. Sono forniti per garantire il funzionamento del codice sorgente esistente. Si sconsiglia vivamente di utilizzarli nel codice nuovo.
Funzioni pubbliche
(deprecated in 6.6) QSqlQuery | exec(const QString &query = QString()) const |
Documentazione sulle funzioni membro
[deprecated in 6.6] QSqlQuery QSqlDatabase::exec(const QString &query = QString()) const
Questa funzione è deprecata a partire dalla versione 6.6. Si sconsiglia vivamente di utilizzarla nel codice nuovo.
Esegue un'istruzione SQL sul database e restituisce un oggetto ` QSqlQuery `. Utilizzare ` lastError()` per recuperare le informazioni relative agli errori. Se ` query ` è vuoto, viene restituita una query vuota e non valida e ` lastError()` non ne risente.
Utilizzare invece ` 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.