Class: QgsPictureSourceLineEditBase¶
A line edit widget with toolbutton for setting a raster image path.
See also
Added in version 3.20.
List of all members, including inherited members
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. |
Classes
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 specifiedparentwidget. The default format is SVG.- Parameters:
parent (Optional[QWidget] = None)
- __init__(format: QgsPictureSourceLineEditBase.Format, parent: QWidget | None = None)
Constructor for
QgsImageSourceLineEdit, with the specifiedparentwidget.- 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)