7#include <QtSql/qtsqlglobal.h>
8#include <QtCore/qshareddata.h>
9#include <QtCore/qvariant.h>
10#include <QtCore/qstring.h>
28 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(
QSqlField)
41 void setTableName(
const QString &tableName);
44 void setReadOnly(
bool readOnly);
45 bool isReadOnly()
const;
52#if QT_DEPRECATED_SINCE(6, 0)
66 void setRequiredStatus(RequiredStatus status);
68 { setRequiredStatus(required ?
Required : Optional); }
69 void setLength(
int fieldLength);
72 void setSqlType(
int type);
73 void setGenerated(
bool gen);
74 void setAutoValue(
bool autoVal);
76 RequiredStatus requiredStatus()
const;
81 bool isGenerated()
const;
91#ifndef QT_NO_DEBUG_STREAM
The QSqlField class manipulates the fields in SQL database tables and views.
RequiredStatus
Specifies whether the field is required or optional.
QSqlField(QSqlField &&other) noexcept=default
bool operator!=(const QSqlField &other) const
Returns true if the field is unequal to other; otherwise returns false.
QSqlField(const QSqlField &other)
Constructs a copy of other.
void setRequired(bool required)
Sets the required status of this field to \l Required if required is true; otherwise sets it to \l Op...
~QSqlField()
Destroys the object and frees any allocated resources.
QVariant value() const
Returns the value of the field as a QVariant.
void swap(QSqlField &other) noexcept
QSqlField & operator=(const QSqlField &other)
Sets the field equal to other.
\macro QT_RESTRICTED_CAST_FROM_ASCII
employee setName("Richard Schmit")
Combined button and popup list for selecting options.
#define QT_WARNING_DISABLE_DEPRECATED
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage void
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLenum GLuint GLenum GLsizei length
GLenum GLint GLint * precision
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
#define QT_DECLARE_QESDP_SPECIALIZATION_DTOR_WITH_EXPORT(Class, ExportMacro)
static bool isAutoValue(const SQLHANDLE hStmt, int column)
Q_SQL_EXPORT QDebug operator<<(QDebug, const QSqlField &)
#define QT_DEPRECATED_VERSION_X_6_0(text)
settings setValue("DataPump/bgcolor", color)
proxy setType(QNetworkProxy::Socks5Proxy)