Class: QgsPictureSourceLineEditBase

A line edit widget with toolbutton for setting a raster image path.

Added in version 3.20.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.gui.QgsPictureSourceLineEditBase

Base classes

QgsAbstractFileContentSourceLineEdit

Abstract base class for widgets which allow users to select content from a file, embedding a file, etc.

QWidget

QObject

QPaintDevice

Subclasses

QgsAnimatedImageSourceLineEdit

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

QgsImageSourceLineEdit

A line edit widget with toolbutton for setting a raster image path.

QgsSvgSourceLineEdit

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

Classes

Format

Methods

setMode

Defines the mode of the source line edit

Attributes

AnimatedImage

Image

Svg

class qgis.gui.QgsPictureSourceLineEditBase[source]

Bases: QgsAbstractFileContentSourceLineEdit

__init__(parent: QWidget | None = None)

Constructor for QgsImageSourceLineEdit, with the specified parent widget. The default format is SVG.

Parameters:

parent (Optional[QWidget] = None)

__init__(format: QgsPictureSourceLineEditBase.Format, parent: QWidget | None = None)

Constructor for QgsImageSourceLineEdit, with the specified parent widget.

Parameters:
AnimatedImage = 2
class Format

Bases: int

Image = 1
Svg = 0
setMode(self, format: QgsPictureSourceLineEditBase.Format)[source]

Defines the mode of the source line edit

Parameters:

format (QgsPictureSourceLineEditBase.Format)