Subgroup: Font

Class: QgsFontMarkerSymbolLayerWidget

class qgis.gui.QgsFontMarkerSymbolLayerWidget(vl: QgsVectorLayer, parent: QWidget = None)

Bases: qgis._gui.QgsSymbolLayerWidget

Constructor for QgsFontMarkerSymbolLayerWidget.

Parameters:
  • vl – associated vector layer
  • parent

    parent widget

    Methods

    acceptDrops
    accessibleDescription
    accessibleName
    actionEvent
    actions
    activateWindow
    addAction
    addActions
    adjustSize
    autoFillBackground
    backgroundRole
    baseSize
    blockSignals
    changeEvent
    childAt childAt(self, int, int) -> QWidget
    childEvent
    children
    childrenRect
    childrenRegion
    clearFocus
    clearMask
    close
    closeEvent
    colorCount
    connectNotify
    contentsMargins
    contentsRect
    context Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
    contextMenuEvent
    contextMenuPolicy
    create Creates a new QgsFontMarkerSymbolLayerWidget.
    createExpressionContext
    createWindowContainer
    cursor
    customEvent
    deleteLater
    depth
    destroy
    devType
    devicePixelRatio
    devicePixelRatioF
    devicePixelRatioFScale
    disconnect
    disconnectNotify
    dragEnterEvent
    dragLeaveEvent
    dragMoveEvent
    dropEvent
    dumpObjectInfo
    dumpObjectTree
    dynamicPropertyNames
    effectiveWinId
    ensurePolished
    enterEvent
    event
    eventFilter
    find
    findChild findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject
    findChildren findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject]
    focusInEvent
    focusNextChild
    focusNextPrevChild
    focusOutEvent
    focusPolicy
    focusPreviousChild
    focusProxy
    focusWidget
    font
    fontInfo
    fontMetrics
    foregroundRole
    frameGeometry
    frameSize
    geometry
    getContentsMargins
    grab
    grabGesture
    grabKeyboard
    grabMouse grabMouse(self, Union[QCursor, Qt.CursorShape])
    grabShortcut
    graphicsEffect
    graphicsProxyWidget
    hasFocus
    hasHeightForWidth
    hasMouseTracking
    hasTabletTracking
    height
    heightForWidth
    heightMM
    hide
    hideEvent
    inherits
    initPainter
    inputMethodEvent
    inputMethodHints
    inputMethodQuery
    insertAction
    insertActions
    installEventFilter
    isActiveWindow
    isAncestorOf
    isEnabled
    isEnabledTo
    isFullScreen
    isHidden
    isLeftToRight
    isMaximized
    isMinimized
    isModal
    isRightToLeft
    isSignalConnected
    isVisible
    isVisibleTo
    isWidgetType
    isWindow
    isWindowModified
    isWindowType
    keyPressEvent
    keyReleaseEvent
    keyboardGrabber
    killTimer
    layout
    layoutDirection
    leaveEvent
    locale
    logicalDpiX
    logicalDpiY
    lower
    mapFrom
    mapFromGlobal
    mapFromParent
    mapTo
    mapToGlobal
    mapToParent
    mask
    maximumHeight
    maximumSize
    maximumWidth
    metaObject
    metric
    minimumHeight
    minimumSize
    minimumSizeHint
    minimumWidth
    mouseDoubleClickEvent
    mouseGrabber
    mouseMoveEvent
    mousePressEvent
    mouseReleaseEvent
    move move(self, int, int)
    moveEvent
    moveToThread
    nativeEvent
    nativeParentWidget
    nextInFocusChain
    normalGeometry
    objectName
    overrideWindowFlags
    overrideWindowState
    paintEngine
    paintEvent
    paintingActive
    palette
    parent
    parentWidget
    physicalDpiX
    physicalDpiY
    pos
    previousInFocusChain
    property
    pyqtConfigure Each keyword argument is either the name of a Qt property or a Qt signal.
    raise_
    receivers
    rect
    registerDataDefinedButton
    releaseKeyboard
    releaseMouse
    releaseShortcut
    removeAction
    removeEventFilter
    render render(self, QPainter, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: Union[QWidget.RenderFlags, QWidget.RenderFlag] = QWidget.RenderFlags(QWidget.DrawWindowBackground|QWidget.DrawChildren))
    repaint repaint(self, int, int, int, int)
    resize resize(self, int, int)
    resizeEvent
    restoreGeometry
    saveGeometry
    scroll scroll(self, int, int, QRect)
    sender
    senderSignalIndex
    setAcceptDrops
    setAccessibleDescription
    setAccessibleName
    setAngle
    setAttribute
    setAutoFillBackground
    setBackgroundRole
    setBaseSize setBaseSize(self, QSize)
    setCharacter
    setColor
    setColorStroke Set stroke color.
    setContentsMargins setContentsMargins(self, QMargins)
    setContext Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
    setContextMenuPolicy
    setCursor
    setDisabled
    setEnabled
    setFixedHeight
    setFixedSize setFixedSize(self, int, int)
    setFixedWidth
    setFocus setFocus(self, Qt.FocusReason)
    setFocusPolicy
    setFocusProxy
    setFont
    setFontFamily
    setForegroundRole
    setGeometry setGeometry(self, int, int, int, int)
    setGraphicsEffect
    setHidden
    setInputMethodHints
    setLayout
    setLayoutDirection
    setLocale
    setMask setMask(self, QRegion)
    setMaximumHeight
    setMaximumSize setMaximumSize(self, QSize)
    setMaximumWidth
    setMinimumHeight
    setMinimumSize setMinimumSize(self, QSize)
    setMinimumWidth
    setMouseTracking
    setObjectName
    setPalette
    setParent setParent(self, QWidget, Union[Qt.WindowFlags, Qt.WindowType])
    setProperty
    setShortcutAutoRepeat
    setShortcutEnabled
    setSize
    setSizeIncrement setSizeIncrement(self, QSize)
    setSizePolicy setSizePolicy(self, QSizePolicy.Policy, QSizePolicy.Policy)
    setStatusTip
    setStyle
    setStyleSheet
    setSymbolLayer
    setTabOrder
    setTabletTracking
    setToolTip
    setToolTipDuration
    setUpdatesEnabled
    setVisible
    setWhatsThis
    setWindowFilePath
    setWindowFlag
    setWindowFlags
    setWindowIcon
    setWindowIconText
    setWindowModality
    setWindowModified
    setWindowOpacity
    setWindowRole
    setWindowState
    setWindowTitle
    sharedPainter
    show
    showEvent
    showFullScreen
    showMaximized
    showMinimized
    showNormal
    signalsBlocked
    size
    sizeHint
    sizeIncrement
    sizePolicy
    stackUnder
    startTimer
    statusTip
    style
    styleSheet
    symbolLayer
    tabletEvent
    testAttribute
    thread
    timerEvent
    toolTip
    toolTipDuration
    tr
    underMouse
    ungrabGesture
    unsetCursor
    unsetLayoutDirection
    unsetLocale
    update update(self, QRect)
    updateDataDefinedProperty
    updateGeometry
    updateMicroFocus
    updatesEnabled
    vectorLayer Returns the vector layer associated with the widget.
    visibleRegion
    whatsThis
    wheelEvent
    width
    widthMM
    winId
    window
    windowFilePath
    windowFlags
    windowHandle
    windowIcon
    windowIconText
    windowModality
    windowOpacity
    windowRole
    windowState
    windowTitle
    windowType
    x
    y

    Attributes

    DrawChildren
    DrawWindowBackground
    IgnoreMask
    PdmDepth
    PdmDevicePixelRatio
    PdmDevicePixelRatioScaled
    PdmDpiX
    PdmDpiY
    PdmHeight
    PdmHeightMM
    PdmNumColors
    PdmPhysicalDpiX
    PdmPhysicalDpiY
    PdmWidth
    PdmWidthMM
    changed Should be emitted whenever configuration changes happened on this symbol layer configuration.
    customContextMenuRequested customContextMenuRequested(self, QPoint) [signal]
    destroyed destroyed(self, QObject = None) [signal]
    objectNameChanged objectNameChanged(self, str) [signal]
    staticMetaObject
    symbolChanged Should be emitted whenever the sub symbol changed on this symbol layer configuration.
    windowIconChanged windowIconChanged(self, QIcon) [signal]
    windowIconTextChanged windowIconTextChanged(self, str) [signal]
    windowTitleChanged windowTitleChanged(self, str) [signal]
actionEvent()
changeEvent()
childEvent()
closeEvent()
connectNotify()
contextMenuEvent()
create(vl: QgsVectorLayer) → QgsSymbolLayerWidget

Creates a new QgsFontMarkerSymbolLayerWidget.

Parameters:vl – associated vector layer
createExpressionContext()
customEvent()
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()
registerDataDefinedButton()
resizeEvent()
sender()
senderSignalIndex()
setAngle(self, angle: float)
setCharacter(self, chr: str)
setColor(self, color: Union[QColor, Qt.GlobalColor, QGradient])
setColorStroke(self, color: Union[QColor, Qt.GlobalColor, QGradient])

Set stroke color.

New in version 2.16.

setFontFamily(self, font: QFont)
setSize(self, size: float)
setSymbolLayer(self, layer: QgsSymbolLayer)
sharedPainter()
showEvent()
symbolLayer(self) → QgsSymbolLayer
tabletEvent()
timerEvent()
updateDataDefinedProperty()
updateMicroFocus()
wheelEvent()