Class: QgsDashSpaceDialog¶
A dialog for entering a custom dash space pattern for lines.

QgsDashSpaceDialog showing a custom dash pattern¶
Class Hierarchy¶
Base classes¶
Methods
Returns the dash pattern as a list of numbers |
|
Sets the unit type used for the dash space pattern (used to update interface labels) |
- class qgis.gui.QgsDashSpaceDialog[source]¶
Bases:
QDialog
- __init__(v: Iterable[float], parent: QWidget | None = None, f: Qt.WindowFlags | Qt.WindowType = Qt.WindowFlags())
Constructor for QgsDashSpaceDialog
- Parameters:
v (Iterable[float])
parent (Optional[QWidget] = None)
f (Union[Qt.WindowFlags, Qt.WindowType] = Qt.WindowFlags())
- dashDotVector(self) List[float] ¶
Returns the dash pattern as a list of numbers
- Return type:
List[float]
- setUnit(self, unit: Qgis.RenderUnit)[source]¶
Sets the unit type used for the dash space pattern (used to update interface labels)
- Parameters:
unit (Qgis.RenderUnit) – the unit type
Added in version 3.8.