pyqtlet2 icon indicating copy to clipboard operation
pyqtlet2 copied to clipboard

Tiles download in recent QtWebEngine versions

Open GAcherQuaze opened this issue 1 year ago • 1 comments

Recent versions of QtWebEngine have stricter policies when it comes to accessing remote content. As it stands, tiles don't load. The fix would be to add in the MapWidget constructor : self._page.settings().setAttribute(QWebEngineSettings.WebAttribute.LocalContentCanAccessRemoteUrls,True) Hope that helps

GAcherQuaze avatar Jan 18 '24 20:01 GAcherQuaze

Dear GAcherQuaze

Thanky you very much for this information! That helps a lot. I had the same problem after migrated my code from pyqtlet to pyqtlet2 and PyQt6. Now it works again. 🙂

CyBobber avatar Feb 16 '24 12:02 CyBobber