QgsQuickFeatureHighlight class

Creates map highlights for a geometry provided by a AttributeModel.

The highlights are compatible with the QtQuick scene graph and can be direcly shown on map canvas

Constructors, destructors, conversion operators

QgsQuickFeatureHighlight(QQuickItem* parent = nullptr) explicit
Creates a new feature highlight.

Signals

void colorChanged()
Color of the highlighted geometry (feature).
void featureLayerPairChanged()
Feature to highlight.
void mapSettingsChanged()
Associated map settings.
void widthChanged()
Pen width of the highlighted geometry (feature).

Function documentation

void QgsQuickFeatureHighlight::colorChanged() signal

Color of the highlighted geometry (feature).

Default is yellow color

void QgsQuickFeatureHighlight::mapSettingsChanged() signal

Associated map settings.

Should be initialized from QML component before the first use.

void QgsQuickFeatureHighlight::widthChanged() signal

Pen width of the highlighted geometry (feature).

Default is 20, see QSGGeometry::setLineWidth()