Qt 4.8
Classes | Functions
qsqldatabase.h File Reference
#include <QtCore/qstring.h>
#include <QtSql/qsql.h>

Go to the source code of this file.

Classes

class  QSqlDatabase
 The QSqlDatabase class represents a connection to a database. More...
 
class  QSqlDriverCreator< T >
 The QSqlDriverCreator class is a template class that provides a SQL driver factory for a specific driver type. More...
 
class  QSqlDriverCreatorBase
 The QSqlDriverCreatorBase class is the base class for SQL driver factories. More...
 

Functions

Q_SQL_EXPORT QDebug operator<< (QDebug, const QSqlDatabase &)
 

Function Documentation

◆ operator<<()

Q_SQL_EXPORT QDebug operator<< ( QDebug  ,
const QSqlDatabase  
)

Definition at line 1567 of file qsqldatabase.cpp.

1568 {
1569  if (!d.isValid()) {
1570  dbg.nospace() << "QSqlDatabase(invalid)";
1571  return dbg.space();
1572  }
1573 
1574  dbg.nospace() << "QSqlDatabase(driver=\"" << d.driverName() << "\", database=\""
1575  << d.databaseName() << "\", host=\"" << d.hostName() << "\", port=" << d.port()
1576  << ", user=\"" << d.userName() << "\", open=" << d.isOpen() << ")";
1577  return dbg.space();
1578 }
double d
Definition: qnumeric_p.h:62