Class: QgsAdvancedDigitizingFloater

The QgsAdvancedDigitizingFloater class is widget that floats next to the mouse pointer, and allow interaction with the AdvancedDigitizing feature. It proxies display and actions to QgsMapToolAdvancedDigitizingDockWidget.

Note

This class is a technology preview and unstable API.

Added in version 3.8.

QgsAdvancedDigitizingFloater

QgsAdvancedDigitizingFloater

Class Hierarchy

Inheritance diagram of qgis.gui.QgsAdvancedDigitizingFloater

Base classes

QWidget

QObject

QPaintDevice

Enums

FloaterItem

Available floater items

Methods

active

Whether the floater is active or not.

itemVisibility

Returns True if the floater item visibility setting is enabled.

setActive

Set whether the floater should be active or not.

setItemVisibility

Set whether the floater item should be visible or not.

class qgis.gui.QgsAdvancedDigitizingFloater[source]

Bases: QWidget

__init__(canvas: QgsMapCanvas | None, cadDockWidget: QgsAdvancedDigitizingDockWidget | None)

Create an advanced digitizing floater widget

Parameters:

Added in version 3.8.

class FloaterItem(*values)

Bases: IntEnum

Available floater items

  • XCoordinate:

  • YCoordinate:

  • MCoordinate:

  • ZCoordinate:

  • Angle:

  • CommonAngleSnapping:

  • Distance:

  • Bearing:

Angle = 32
Bearing = 256
CommonAngleSnapping = 64
Distance = 128
MCoordinate = 8
XCoordinate = 2
YCoordinate = 4
ZCoordinate = 16
class FloaterItems
class FloaterItems(f: QgsAdvancedDigitizingFloater.FloaterItems | QgsAdvancedDigitizingFloater.FloaterItem)
class FloaterItems(a0: QgsAdvancedDigitizingFloater.FloaterItems)

Bases: object

active(self) bool[source]

Whether the floater is active or not. Note that the floater may be active but not visible (e.g. if the mouse is not over the canvas).

Added in version 3.8.

Return type:

bool

itemVisibility(self, item: QgsAdvancedDigitizingFloater.FloaterItem) bool[source]

Returns True if the floater item visibility setting is enabled.

Parameters:

item (QgsAdvancedDigitizingFloater.FloaterItem) – floater item

Added in version 3.32.

Return type:

bool

setActive(self, active: bool)[source]

Set whether the floater should be active or not. Note that the floater may be active but not visible (e.g. if the mouse is not over the canvas).

Parameters:

active (bool)

Added in version 3.8.

setItemVisibility(self, item: QgsAdvancedDigitizingFloater.FloaterItem, visible: bool)[source]

Set whether the floater item should be visible or not.

Parameters:

Added in version 3.32.