34 return QStringLiteral(
"DateTime" );
49 const bool fieldIsoFormat = config.value( QStringLiteral(
"field_iso_format" ),
false ).toBool();
50 const QString fieldFormat = config.value( QStringLiteral(
"field_format" ),
defaultFormat( field.
type() ) ).toString();
51 const QString displayFormat = config.value( QStringLiteral(
"display_format" ),
defaultFormat( field.
type() ) ).toString();
56 date = QDateTime::fromString( value.toString(), Qt::ISODate );
60 date = QDateTime::fromString( value.toString(), fieldFormat );
65 result = date.toString( displayFormat );
69 result = value.toString();
79 case QVariant::DateTime:
QgsField at(int i) const
Gets field at particular index (must be in range 0..N-1)
QgsFields fields() const FINAL
Returns the list of fields of this layer.
static QString nullRepresentation()
This string is used to represent the value NULL throughout QGIS.
Encapsulate a field in an attribute table or data source.
Represents a vector layer which manages a vector based data sets.