QSqlField

#include <QtSql/QSqlField>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QSqlField


Overview

Public Types Index

enum RequiredStatus

Unknown -1, Optional 0, Required 1

Public Functions Index

QSqlField (const QString &fieldName=QString(), QVariant::Type type=QVariant::Invalid)
QSqlField (const QSqlField &other)
~QSqlField ()
voidclear ()
QVariantdefaultValue () const
boolisAutoValue () const
boolisGenerated () const
boolisNull () const
boolisReadOnly () const
boolisValid () const
intlength () const
QStringname () const
booloperator!= (const QSqlField &other) const
QSqlField &operator= (const QSqlField &other)
booloperator== (const QSqlField &other) const
intprecision () const
RequiredStatusrequiredStatus () const
voidsetAutoValue (bool autoVal)
voidsetDefaultValue (const QVariant &value)
voidsetGenerated (bool gen)
voidsetLength (int fieldLength)
voidsetName (const QString &name)
voidsetPrecision (int precision)
voidsetReadOnly (bool readOnly)
voidsetRequired (bool required)
voidsetRequiredStatus (RequiredStatus status)
voidsetSqlType (int type)
voidsetType (QVariant::Type type)
voidsetValue (const QVariant &value)
QVariant::Typetype () const
inttypeID () const
QVariantvalue () const

Public Types

RequiredStatus

Unknown -1
Optional 0
Required 1

Public Functions

QSqlField (
  • const QString &fieldName,
  • QVariant::Typetype )

QSqlField (

~QSqlField ()

Destructor.

void clear ()

QVariant defaultValue ()

bool isAutoValue ()

bool isGenerated ()

bool isNull ()

bool isReadOnly ()

bool isValid ()

int length ()

QString name ()

bool operator!= (

QSqlField & operator= (

bool operator== (

int precision ()

RequiredStatus requiredStatus ()

void setAutoValue (
  • boolautoVal)

void setDefaultValue (

void setGenerated (
  • boolgen)

void setLength (
  • intfieldLength)

void setName (

void setPrecision (
  • intprecision)

void setReadOnly (
  • boolreadOnly)

void setRequired (
  • boolrequired)

void setRequiredStatus (
  • RequiredStatusstatus)

void setSqlType (
  • inttype)

void setType (
  • QVariant::Typetype)

void setValue (

QVariant::Type type ()

int typeID ()

QVariant value ()

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus