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.

New in version 3.4.

Parameters

parent

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.

Parameters

key (str) –

setSource(self, source: str)

Sets a new source to show in the widget.

See also

source()

See also

sourceChanged()

Parameters

source (str) –

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

Returns the current SVG source.

See also

setSource()

See also

sourceChanged()

Return type

str

sourceChanged

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

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