Class: QgsAbstractFileContentSourceLineEdit¶
- class qgis.gui.QgsAbstractFileContentSourceLineEdit¶
Bases:
PyQt5.QtWidgets.QWidget
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.
QgsAbstractFileContentSourceLineEdit(parent: QWidget = None) Constructor for
QgsAbstractFileContentSourceLineEdit
, with the specifiedparent
widget.Methods
Returns the message bar associated with the widget.
Returns the property override tool button
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 the visibility of the property override tool button
Sets a new
source
to show in the widget.Returns the current file source.
Signals
pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
- messageBar(self) QgsMessageBar ¶
Returns the message bar associated with the widget.
See also
- Return type:
- propertyOverrideToolButton(self) QgsPropertyOverrideButton ¶
Returns the property override tool button
New in version 3.16.
- Return type:
- setLastPathSettingsKey(self, key: str)¶
Sets a specific settings
key
to use when storing the last used path for the file source.- Parameters:
key (str) –
- 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
- Parameters:
bar (QgsMessageBar) –
- setPropertyOverrideToolButtonVisible(self, visible: bool)¶
Sets the visibility of the property override tool button
New in version 3.16.
- Parameters:
visible (bool) –
- setSource(self, source: str)¶
Sets a new
source
to show in the widget.See also
See also
- Parameters:
source (str) –
- source(self) str ¶
Returns the current file source.
See also
See also
- Return type:
str
- sourceChanged¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Parameters:
name (str = ...) –
revision (int = ...) –
arguments (Sequence = ...) –
- Return type:
PYQT_SIGNAL