Class: QgsAbstractFileContentSourceLineEdit¶
-
class
qgis.gui.
QgsAbstractFileContentSourceLineEdit
(parent: QWidget = None)¶ Bases:
PyQt5.QtWidgets.QWidget
Constructor for QgsAbstractFileContentSourceLineEdit, with the specified
parent
widget.Abstract base class for a widgets which allows users to select content from a file, embedding a file, etc.
This class is designed to be used by content which is managed by a QgsAbstractContentCache, i.e. it can handle either direct file paths, base64 encoded contents, or remote HTTP urls.
New in version 3.6: Enums
Methods
Returns the message bar associated with the widget.
Sets a specific settings
key
to use when storing the last used path for the file source.Sets the message
bar
associated with the widget.Sets a new
source
to show in the widget.Returns the current file source.
Signals
Emitted whenever the file source is changed in the widget.
Attributes
-
messageBar
(self) → QgsMessageBar¶ Returns the message bar associated with the widget.
See also
-
setLastPathSettingsKey
(self, key: str)¶ Sets a specific settings
key
to use when storing the last used path for the file source.
-
setMessageBar
(self, bar: QgsMessageBar)¶ Sets the message
bar
associated with the widget. This allows the widget to push feedback messages to the appropriate message bar.See also
-
setSource
(self, source: str)¶ Sets a new
source
to show in the widget.See also
See also
-
source
(self) → str¶ Returns the current file source.
See also
See also
-
sourceChanged
¶ Emitted whenever the file source is changed in the widget. [signal]
-