| 
    QGIS API Documentation 3.32.0-Lima (311a8cb8a6)
    
   | 
 
This element will load a field's widget onto the form. More...
#include <qgsattributeeditorfield.h>

Public Member Functions | |
| QgsAttributeEditorField (const QString &name, int idx, QgsAttributeEditorElement *parent) | |
| Creates a new attribute editor element which represents a field.  More... | |
| QgsAttributeEditorElement * | clone (QgsAttributeEditorElement *parent) const override | 
| Returns a clone of this element.  More... | |
| int | idx () const | 
| Returns the index of the field.  More... | |
  Public Member Functions inherited from QgsAttributeEditorElement | |
| QgsAttributeEditorElement (Qgis::AttributeEditorType type, const QString &name, QgsAttributeEditorElement *parent=nullptr) | |
| Constructor.  More... | |
| virtual | ~QgsAttributeEditorElement ()=default | 
| virtual QgsAttributeEditorElement * | clone (QgsAttributeEditorElement *parent) const =0 | 
| Returns a clone of this element.  More... | |
| int | horizontalStretch () const | 
| Returns the horizontal stretch factor for the element.  More... | |
| LabelStyle | labelStyle () const | 
| Returns the label style.  More... | |
| QString | name () const | 
| Returns the name of this element.  More... | |
| QgsAttributeEditorElement * | parent () const | 
| Gets the parent of this element.  More... | |
| void | setHorizontalStretch (int stretch) | 
| Sets the horizontal stretch factor for the element.  More... | |
| void | setLabelStyle (const LabelStyle &labelStyle) | 
| Sets the labelStyle.  More... | |
| void | setShowLabel (bool showLabel) | 
| Controls if this element should be labeled with a title (field, relation or groupname).  More... | |
| void | setVerticalStretch (int stretch) | 
| Sets the vertical stretch factor for the element.  More... | |
| bool | showLabel () const | 
| Controls if this element should be labeled with a title (field, relation or groupname).  More... | |
| QDomElement | toDomElement (QDomDocument &doc) const | 
| Gets the XML Dom element to save this element.  More... | |
| Qgis::AttributeEditorType | type () const | 
| The type of this element.  More... | |
| int | verticalStretch () const | 
| Returns the vertical stretch factor for the element.  More... | |
Additional Inherited Members | |
  Static Public Member Functions inherited from QgsAttributeEditorElement | |
| static QgsAttributeEditorElement * | create (const QDomElement &element, const QString &layerId, const QgsFields &fields, const QgsReadWriteContext &context, QgsAttributeEditorElement *parent=nullptr) | 
| Constructs the editor element from the given element.  More... | |
  Protected Attributes inherited from QgsAttributeEditorElement | |
| int | mHorizontalStretch = 0 | 
| LabelStyle | mLabelStyle | 
| QString | mName | 
| QgsAttributeEditorElement * | mParent = nullptr | 
| bool | mShowLabel = true | 
| Qgis::AttributeEditorType | mType = Qgis::AttributeEditorType::Invalid | 
| int | mVerticalStretch = 0 | 
This element will load a field's widget onto the form.
Definition at line 27 of file qgsattributeeditorfield.h.
      
  | 
  inline | 
Creates a new attribute editor element which represents a field.
| name | The name of the element | 
| idx | The index of the field which should be embedded | 
| parent | The parent of this widget (used as container) | 
Definition at line 38 of file qgsattributeeditorfield.h.
      
  | 
  overridevirtual | 
Returns a clone of this element.
To be implemented by subclasses.
Implements QgsAttributeEditorElement.
Definition at line 20 of file qgsattributeeditorfield.cpp.
      
  | 
  inline | 
Returns the index of the field.
Definition at line 46 of file qgsattributeeditorfield.h.