QgsSourceCache(parent: QObject = None)¶
QgsSourceCache, with the specified
A cache for source strings that returns a local file path containing the source content.
New in version 3.16.
checkReply(self, reply: QNetworkReply, path: str) → bool¶
Runs additional checks on a network
replyto ensure that the reply content is consistent with that required by the cache.
isSignalConnected(self, QMetaMethod) → bool¶
localFilePath(self, path: str, blocking: bool = False) → str¶
Returns a local file path reflecting the content of a specified source
pathmay be a local file, remote (HTTP) url, or a base 64 encoded string (with a “base64:” prefix).
path (str) –
blocking (bool = False) –
- Return type
onRemoteContentFetched(self, url: str, success: bool)¶
Triggered after remote content (i.e. HTTP linked content at the given
url) has been fetched.
successargument will be
Trueif the content was successfully fetched, or
Falseif it was not fetched successfully.
receivers(self, PYQT_SIGNAL) → int¶
Emitted when the cache has finished retrieving a 3D model from a remote
url (str) –
sender(self) → QObject¶
senderSignalIndex(self) → int¶