QGIS API Documentation
3.10.0-A Coruña (6c816b4204)
|
An attribute editor widget that will represent arbitrary HTML code. More...
#include <qgsattributeeditorelement.h>
Public Member Functions | |
QgsAttributeEditorHtmlElement (const QString &name, QgsAttributeEditorElement *parent) | |
Creates a new element which can display HTML. More... | |
QgsAttributeEditorElement * | clone (QgsAttributeEditorElement *parent) const override |
Returns a clone of this element. More... | |
QString | htmlCode () const |
The QML code that will be represented within this widget. More... | |
void | setHtmlCode (const QString &htmlCode) |
Sets the HTML code that will be represented within this widget to htmlCode. More... | |
![]() | |
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 | |
![]() | |
enum | AttributeEditorType { AeTypeContainer, AeTypeField, AeTypeRelation, AeTypeInvalid, AeTypeQmlElement, AeTypeHtmlElement } |
![]() | |
QString | mName |
QgsAttributeEditorElement * | mParent = nullptr |
bool | mShowLabel |
AttributeEditorType | mType |
An attribute editor widget that will represent arbitrary HTML code.
Definition at line 479 of file qgsattributeeditorelement.h.
|
inline |
Creates a new element which can display HTML.
name | The name of the widget |
parent | The parent (used as container) |
Definition at line 489 of file qgsattributeeditorelement.h.
|
overridevirtual |
Returns a clone of this element.
To be implemented by subclasses.
Implements QgsAttributeEditorElement.
Definition at line 194 of file qgsattributeeditorelement.cpp.
QString QgsAttributeEditorHtmlElement::htmlCode | ( | ) | const |
The QML code that will be represented within this widget.
Definition at line 202 of file qgsattributeeditorelement.cpp.
void QgsAttributeEditorHtmlElement::setHtmlCode | ( | const QString & | htmlCode | ) |
Sets the HTML code that will be represented within this widget to htmlCode.
Definition at line 207 of file qgsattributeeditorelement.cpp.