|
QGIS API Documentation
3.6.0-Noosa (5873452)
|
An attribute editor widget that will represent arbitrary QML code. More...
#include <qgsattributeeditorelement.h>

Public Member Functions | |
| QgsAttributeEditorQmlElement (const QString &name, QgsAttributeEditorElement *parent) | |
| Creates a new element which can display QML. More... | |
| QgsAttributeEditorElement * | clone (QgsAttributeEditorElement *parent) const override |
| Returns a clone of this element. More... | |
| QString | qmlCode () const |
| The QML code that will be represented within this widget. More... | |
| void | setQmlCode (const QString &qmlCode) |
| The QML code that will be represented within this widget. 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 |
An attribute editor widget that will represent arbitrary QML code.
Definition at line 421 of file qgsattributeeditorelement.h.
|
inline |
Creates a new element which can display QML.
| name | The name of the widget |
| parent | The parent (used as container) |
Definition at line 431 of file qgsattributeeditorelement.h.
|
overridevirtual |
Returns a clone of this element.
To be implemented by subclasses.
Implements QgsAttributeEditorElement.
Definition at line 154 of file qgsattributeeditorelement.cpp.
| QString QgsAttributeEditorQmlElement::qmlCode | ( | ) | const |
The QML code that will be represented within this widget.
Definition at line 162 of file qgsattributeeditorelement.cpp.
| void QgsAttributeEditorQmlElement::setQmlCode | ( | const QString & | qmlCode | ) |
The QML code that will be represented within this widget.
| qmlCode |
Definition at line 167 of file qgsattributeeditorelement.cpp.
1.8.13