Class: QgsPictureSourceLineEditBase¶
A line edit widget with toolbutton for setting a raster image path.
See also
Added in version 3.20.
Class Hierarchy¶
Base classes¶
Abstract base class for widgets which allow users to select content from a file, embedding a file, etc. |
|
Subclasses¶
A line edit widget with toolbutton for setting an animated raster image path. |
|
A line edit widget with toolbutton for setting a raster image path. |
|
A line edit widget with toolbutton for setting an SVG image path. |
Methods
Defines the mode of the source line edit |
Attributes
- class qgis.gui.QgsPictureSourceLineEditBase[source]¶
Bases:
QgsAbstractFileContentSourceLineEdit
- __init__(parent: QWidget | None = None)
Constructor for
QgsImageSourceLineEdit
, with the specifiedparent
widget. The default format is SVG.- Parameters:
parent (Optional[QWidget] = None)
- __init__(format: QgsPictureSourceLineEditBase.Format, parent: QWidget | None = None)
Constructor for
QgsImageSourceLineEdit
, with the specifiedparent
widget.- Parameters:
format (QgsPictureSourceLineEditBase.Format)
parent (Optional[QWidget] = None)
- 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)