QGIS API Documentation  3.6.0-Noosa (5873452)
Signals | Public Member Functions | Properties | List of all members
QgsQuickFeatureHighlight Class Reference

Creates map highlights for a geometry provided by a AttributeModel. More...

#include <qgsquickfeaturehighlight.h>

Inheritance diagram for QgsQuickFeatureHighlight:
Inheritance graph
[legend]

Signals

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

Public Member Functions

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

Properties

QColor color
 Color of the highlighted geometry (feature). More...
 
QgsQuickFeatureLayerPair featureLayerPair
 Feature to highlight. More...
 
QgsQuickMapSettings mapSettings
 Associated map settings. More...
 
float width
 Pen width of the highlighted geometry (feature). More...
 

Detailed Description

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

Note
QML Type: FeatureHighlight
Since
QGIS 3.4

Definition at line 39 of file qgsquickfeaturehighlight.h.

Constructor & Destructor Documentation

◆ QgsQuickFeatureHighlight()

QgsQuickFeatureHighlight::QgsQuickFeatureHighlight ( QQuickItem *  parent = nullptr)
explicit

Creates a new feature highlight.

Definition at line 25 of file qgsquickfeaturehighlight.cpp.

Member Function Documentation

◆ colorChanged

void QgsQuickFeatureHighlight::colorChanged ( )
signal

Color of the highlighted geometry (feature).

Default is yellow color

◆ featureLayerPairChanged

void QgsQuickFeatureHighlight::featureLayerPairChanged ( )
signal

Feature to highlight.

◆ mapSettingsChanged

void QgsQuickFeatureHighlight::mapSettingsChanged ( )
signal

Associated map settings.

Should be initialized from QML component before the first use.

◆ widthChanged

void QgsQuickFeatureHighlight::widthChanged ( )
signal

Pen width of the highlighted geometry (feature).

Default is 20, see QSGGeometry::setLineWidth()

Property Documentation

◆ color

QColor QgsQuickFeatureHighlight::color

Color of the highlighted geometry (feature).

Default is yellow color

Definition at line 58 of file qgsquickfeaturehighlight.h.

◆ featureLayerPair

QgsQuickFeatureLayerPair QgsQuickFeatureHighlight::featureLayerPair

Feature to highlight.

Definition at line 51 of file qgsquickfeaturehighlight.h.

◆ mapSettings

QgsQuickMapSettings QgsQuickFeatureHighlight::mapSettings

Associated map settings.

Should be initialized from QML component before the first use.

Definition at line 46 of file qgsquickfeaturehighlight.h.

◆ width

float QgsQuickFeatureHighlight::width

Pen width of the highlighted geometry (feature).

Default is 20, see QSGGeometry::setLineWidth()

Definition at line 65 of file qgsquickfeaturehighlight.h.


The documentation for this class was generated from the following files: