TextPopupElement Class

  • TextPopupElement
  • class Esri::ArcGISRuntime::TextPopupElement

    Represents a pop-up element of type text that is displayed in a pop-up for a geoelement. More...

    Header: #include <TextPopupElement>
    Since: Esri::ArcGISRuntime 100.14
    Inherits: Esri::ArcGISRuntime::PopupElement

    Public Functions

    TextPopupElement(const QString &text, QObject *parent = nullptr)
    virtual ~TextPopupElement() override
    void setText(const QString &text)
    QString text() const

    Detailed Description

    See also PopupElementType.

    Member Function Documentation

    [explicit] TextPopupElement::TextPopupElement(const QString &text, QObject *parent = nullptr)

    Creates a new text pop-up element with the given text.

    • text - This is string value indicating the text to be displayed within the popupElement. If no `text` property is provided, the popupElement will display whatever is specified in the PopupDefinition::description property.
    • parent - The optional parent QObject.

    [override virtual] TextPopupElement::~TextPopupElement()

    Destructor.

    void TextPopupElement::setText(const QString &text)

    Sets the text to text.

    See also text.

    QString TextPopupElement::text() const

    Returns the text to display in the pop-up.

    See also setText().

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.