Class: QgsHttpHeaderWidget¶
- class qgis.gui.QgsHttpHeaderWidget¶
Bases:
PyQt5.QtWidgets.QWidget
Display referer http header field and collapsible table of key/value pairs
New in version 3.24.
QgsHttpHeaderWidget(parent: QWidget = None) Default constructor
- Parameters:
parent –
parent widget
Methods
- rtype:
QgsHttpHeaders
fill the inner header map from the settings defined at
key
Sets the widget from the headers
update the
settings
with the http headers present in the inner map.
- actionEvent(self, QActionEvent)¶
- changeEvent(self, QEvent)¶
- childEvent(self, QChildEvent)¶
- closeEvent(self, QCloseEvent)¶
- connectNotify(self, QMetaMethod)¶
- contextMenuEvent(self, QContextMenuEvent)¶
- create(self, window: PyQt5.sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)¶
- customEvent(self, QEvent)¶
- destroy(self, destroyWindow: bool = True, destroySubWindows: bool = True)¶
- disconnectNotify(self, QMetaMethod)¶
- dragEnterEvent(self, QDragEnterEvent)¶
- dragLeaveEvent(self, QDragLeaveEvent)¶
- dragMoveEvent(self, QDragMoveEvent)¶
- dropEvent(self, QDropEvent)¶
- enterEvent(self, QEvent)¶
- event(self, QEvent) bool ¶
- focusInEvent(self, QFocusEvent)¶
- focusNextChild(self) bool ¶
- focusNextPrevChild(self, bool) bool ¶
- focusOutEvent(self, QFocusEvent)¶
- focusPreviousChild(self) bool ¶
- hideEvent(self, QHideEvent)¶
- httpHeaders(self) QgsHttpHeaders ¶
- Return type:
- Returns:
build a new
:py:class:`QgsHttpHeaders`
according to data in the UI
- initPainter(self, QPainter)¶
- inputMethodEvent(self, QInputMethodEvent)¶
- isSignalConnected(self, QMetaMethod) bool ¶
- keyPressEvent(self, QKeyEvent)¶
- keyReleaseEvent(self, QKeyEvent)¶
- leaveEvent(self, QEvent)¶
- metric(self, QPaintDevice.PaintDeviceMetric) int ¶
- mouseDoubleClickEvent(self, QMouseEvent)¶
- mouseMoveEvent(self, QMouseEvent)¶
- mousePressEvent(self, QMouseEvent)¶
- mouseReleaseEvent(self, QMouseEvent)¶
- moveEvent(self, QMoveEvent)¶
- nativeEvent(self, Union[QByteArray, bytes, bytearray], PyQt5.sip.voidptr) Tuple[bool, int] ¶
- paintEvent(self, QPaintEvent)¶
- receivers(self, PYQT_SIGNAL) int ¶
- resizeEvent(self, QResizeEvent)¶
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setFromSettings(self, settings: QgsSettings, key: str)¶
fill the inner header map from the settings defined at
key
See also
QgsHttpHeaders.setFromSettings()
- Parameters:
settings (QgsSettings) –
key (str) –
Deprecated since version QGIS: 3.30 use setFromHeaders instead
- setHeaders(self, headers: QgsHttpHeaders)¶
Sets the widget from the headers
New in version 3.30.
- Parameters:
headers (QgsHttpHeaders) –
- showEvent(self, QShowEvent)¶
- tabletEvent(self, QTabletEvent)¶
- timerEvent(self, QTimerEvent)¶
- updateMicroFocus(self)¶
- updateSettings(self, settings: QgsSettings, key: str)¶
update the
settings
with the http headers present in the inner map.See also
QgsHttpHeaders.updateSettings()
- Parameters:
settings (QgsSettings) –
key (str) –
Deprecated since version QGIS: 3.30 use a variant map for settinds directly
- wheelEvent(self, QWheelEvent)¶