Class: QgsDashSpaceWidget

class qgis.gui.QgsDashSpaceWidget(vectorPattern: Iterable[float], parent: QWidget = None)

Bases: QgsPanelWidget

Constructor for QgsDashSpaceWidget

A widget to enter a custom dash space pattern for lines

New in version 3.8.

Parameters
  • vectorPattern (Iterable[float]) –

  • parent

actionEvent()
changeEvent()
childEvent()
closeEvent()
connectNotify()
contextMenuEvent()
create()
customEvent()
dashDotVector(self) → List[float]

Returns the dash pattern as a list of numbers

Return type

List[float]

destroy()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
enterEvent()
event()
focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
hideEvent()
initPainter()
inputMethodEvent()
isSignalConnected()
keyPressEvent()
keyReleaseEvent()
leaveEvent()
metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
receivers()
resizeEvent()
sender()
senderSignalIndex()
setUnit(self, unit: QgsUnitTypes.RenderUnit)

Sets the unit type used for the dash space pattern (used to update interface labels)

Parameters

unit (QgsUnitTypes.RenderUnit) – the unit type

sharedPainter()
showEvent()
tabletEvent()
timerEvent()
updateMicroFocus()
wheelEvent()