|
QGIS API Documentation
3.4.15-Madeira (e83d02e274)
|
This element will load a field's widget onto the form. More...
#include <qgsattributeeditorelement.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 (AttributeEditorType type, const QString &name, QgsAttributeEditorElement *parent=nullptr) | |
| Constructor. More... | |
| virtual | ~QgsAttributeEditorElement ()=default |
| QString | name () const |
| Returns the name of this element. More... | |
| QgsAttributeEditorElement * | parent () const |
| Gets the parent of this element. More... | |
| void | setShowLabel (bool showLabel) |
| Controls if this element should be labeled with a title (field, relation or groupname). 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... | |
| AttributeEditorType | type () const |
| The type of this element. More... | |
Additional Inherited Members | |
Public Types inherited from QgsAttributeEditorElement | |
| enum | AttributeEditorType { AeTypeContainer, AeTypeField, AeTypeRelation, AeTypeInvalid, AeTypeQmlElement } |
Protected Attributes inherited from QgsAttributeEditorElement | |
| QString | mName |
| QgsAttributeEditorElement * | mParent = nullptr |
| bool | mShowLabel |
| AttributeEditorType | mType |
This element will load a field's widget onto the form.
Definition at line 282 of file qgsattributeeditorelement.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 293 of file qgsattributeeditorelement.h.
|
overridevirtual |
Returns a clone of this element.
To be implemented by subclasses.
Implements QgsAttributeEditorElement.
Definition at line 70 of file qgsattributeeditorelement.cpp.
|
inline |
Returns the index of the field.
Definition at line 301 of file qgsattributeeditorelement.h.
1.8.11