Qt 4.8
Classes | Functions
qsqlrecord.cpp File Reference
#include "qsqlrecord.h"
#include "qdebug.h"
#include "qstringlist.h"
#include "qatomic.h"
#include "qsqlfield.h"
#include "qstring.h"
#include "qvector.h"

Go to the source code of this file.

Classes

class  QSqlRecordPrivate
 

Functions

QDebug operator<< (QDebug dbg, const QSqlRecord &r)
 

Function Documentation

◆ operator<<()

QDebug operator<< ( QDebug  dbg,
const QSqlRecord r 
)

Definition at line 618 of file qsqlrecord.cpp.

619 {
620  dbg << "QSqlRecord(" << r.count() << ')';
621  for (int i = 0; i < r.count(); ++i)
622  dbg << '\n' << QString::fromLatin1("%1:").arg(i, 2) << r.field(i) << r.value(i).toString();
623  return dbg;
624 }
QString toString() const
Returns the variant as a QString if the variant has type() String , Bool , ByteArray ...
Definition: qvariant.cpp:2270
QSqlField field(int i) const
Returns the field at position index.
Definition: qsqlrecord.cpp:289
int count() const
Returns the number of fields in the record.
Definition: qsqlrecord.cpp:573
QString arg(qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
Definition: qstring.cpp:7186
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
Definition: qstring.cpp:4188
QVariant value(int i) const
Returns the value of the field located at position index in the record.
Definition: qsqlrecord.cpp:203