img = QImage()
res= requests.get('https://xxx/logo.ico').content
img.loadFromData(res)
self.setWindowIcon(QIcon(QPixmap(img)))
img = QImage()
res= requests.get('https://xxx/logo.ico').content
img.loadFromData(res)
self.setWindowIcon(QIcon(QPixmap(img)))