(self, url)
| 31 | self.setOpenLinks(False) # 禁止打开URL |
| 32 | |
| 33 | def downloadImage(self, url): |
| 34 | try: |
| 35 | self.NetImages[url] = [QByteArray(requests.get(url.toString()).content), 1] |
| 36 | print('下载完成', url) |
| 37 | except Exception as e: |
| 38 | print('下载失败', url, e) |
| 39 | self.NetImages[url] = [QByteArray(), 1] |
| 40 | |
| 41 | def loadResource(self, rtype, url): |
| 42 | ret = super(TextBrowser, self).loadResource(rtype, url) |
nothing calls this directly
no outgoing calls
no test coverage detected