How to enable allowGeolocationOnInsecureOrigins in Python



  • I'm making a browser in Python with PyQt5. I want to enable Google Geo Location API. Basically I want to show popup when a site want to get user's location.

    self.browser = QWebEngineView()
    self.browser.allowGeolocationOnInsecureOrigins:True

    If we can auto allow the browser for getting location permission that will be best.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.