Compatibility Members for QSqlDriver

The following members of class QSqlDriverare part of the Qt compatibility layer. We advise against using them in new code.

Public Functions

QString formatValue(const QSqlField * field, bool trimStrings = false) const
QString nullText() const
QSqlRecord record(const QSqlQuery & query) const
QSqlRecord recordInfo(const QString & tablename) const
QSqlRecord recordInfo(const QSqlQuery & query) const
  • 8 public functions inherited from QObject

Member Function Documentation

QString QSqlDriver::formatValue(const QSqlField * field, bool trimStrings = false) const

Use the other formatValue() overload instead.

QString QSqlDriver::nullText() const

sqlStatement() is now used to generate SQL. Use tr("NULL") for example, instead.

QSqlRecord QSqlDriver::record(const QSqlQuery & query) const

Use query.record() instead.

QSqlRecord QSqlDriver::recordInfo(const QString & tablename) const

Use record() instead.

QSqlRecord QSqlDriver::recordInfo(const QSqlQuery & query) const

Use query.record() instead.

© 2016 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.