Subgroup: Svg

Class: QgsSvgSourceLineEdit

class qgis.gui.QgsSvgSourceLineEdit(parent: QWidget = None)

Bases: PyQt5.QtWidgets.QWidget

Constructor for QgsSvgSourceLineEdit, with the specified parent widget.

A line edit widget with toolbutton for setting an SVG image path.

actionEvent()
changeEvent()
childEvent()
closeEvent()
connectNotify()
contextMenuEvent()
create()
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()
resizeEvent()
sender()
senderSignalIndex()
setLastPathSettingsKey(self, key: str)

Sets a specific settings key to use when storing the last used path for the SVG source.

setSource(self, source: str)

Sets a new source to show in the widget.

See also

source()

See also

sourceChanged()

sharedPainter()
showEvent()
source(self) → str

Returns the current SVG source.

See also

setSource()

See also

sourceChanged()

sourceChanged

Emitted whenever the SVG source is changed in the widget. [signal]

tabletEvent()
timerEvent()
updateMicroFocus()
wheelEvent()