39 if ( vl->
fields().
at( fieldIdx ).
type() == QVariant::String )
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.
Represents a vector layer which manages a vector based data sets.