16 #ifndef QGSWIDGETWRAPPER_H    17 #define QGSWIDGETWRAPPER_H    56     if ( qobject_cast<QgsEditorWidgetWrapper *>( sipCpp ) )
    57       sipType = sipType_QgsEditorWidgetWrapper;
    58     else if ( qobject_cast<QgsRelationWidgetWrapper *>( sipCpp ) )
    59       sipType = sipType_QgsRelationWidgetWrapper;
    60     else if ( qobject_cast<QgsQmlWidgetWrapper *>( sipCpp ) )
    61       sipType = sipType_QgsQmlWidgetWrapper;
   110     T *
widget() { 
return dynamic_cast<T
>( mWidget ); }
   117     void setConfig( 
const QVariantMap &config );
   134     QVariant config( 
const QString &key, 
const QVariant &defaultVal = QVariant() ) 
const;
   139     QVariantMap config() 
const;
   169     virtual bool valid() 
const = 0;
   205     void notifyAboutToSave();
   214     void contextChanged();
   229     virtual QWidget *createWidget( QWidget *parent ) = 0;
   236     virtual void initWidget( QWidget *editor );
   249     virtual void setFeature( 
const QgsFeature &feature ) = 0;
   257     virtual void setEnabled( 
bool enabled );
   267     virtual void aboutToSave();
   271     QWidget *mWidget = 
nullptr;
   272     QWidget *mParent = 
nullptr;
   280 #endif // QGSWIDGETWRAPPER_H 
This class contains context information for attribute editor widgets. 
 
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
 
Q_DECLARE_METATYPE(QModelIndex)
 
QMap< int, QgsPropertyDefinition > QgsPropertiesDefinition
Definition of available properties. 
 
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
 
A grouped map of multiple QgsProperty objects, each referenced by a integer key value. 
 
Represents a vector layer which manages a vector based data sets.