Subgroup: Network
Class: QgsNetworkContentFetcher¶
-
class
qgis.core.
QgsNetworkContentFetcher
¶ Bases:
PyQt5.QtCore.QObject
HTTP network content fetcher. A simple method for fetching remote HTTP content and converting the content to standard formats. Url redirects are automatically handled.
New in version 2.5: Methods
blockSignals
childEvent
children
connectNotify
contentAsString
Returns the fetched content as a string customEvent
deleteLater
disconnect
disconnectNotify
dumpObjectInfo
dumpObjectTree
dynamicPropertyNames
event
eventFilter
fetchContent
Fetches content from a remote URL and handles redirects. findChild
findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject findChildren
findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] inherits
installEventFilter
isSignalConnected
isWidgetType
isWindowType
killTimer
metaObject
moveToThread
objectName
parent
property
pyqtConfigure
Each keyword argument is either the name of a Qt property or a Qt signal. receivers
removeEventFilter
reply
Returns a reference to the network reply sender
senderSignalIndex
setObjectName
setParent
setProperty
signalsBlocked
startTimer
thread
timerEvent
tr
Attributes
destroyed
destroyed(self, QObject = None) [signal] finished
Emitted when content has loaded [signal] objectNameChanged
objectNameChanged(self, str) [signal] staticMetaObject
-
childEvent
()¶
-
connectNotify
()¶
-
contentAsString
(self) → str¶ Returns the fetched content as a string
Returns: string containing network content
-
customEvent
()¶
-
disconnectNotify
()¶
-
fetchContent
(self, url: QUrl)¶ Fetches content from a remote URL and handles redirects. The finished() signal will be emitted when content has been fetched.
Parameters: url – URL to fetch
-
finished
¶ Emitted when content has loaded [signal]
-
isSignalConnected
()¶
-
receivers
()¶
-
reply
(self) → QNetworkReply¶ Returns a reference to the network reply
Returns: QNetworkReply for fetched URL content
-
sender
()¶
-
senderSignalIndex
()¶
-
timerEvent
()¶
-