【发布时间】:2019-02-28 12:07:39
【问题描述】:
我正在使用 Python 和 PyQt5 制作网络浏览器,我想在我的网络浏览器中启用 allowGeolocationOnInsecureOrigins,以便我可以通过 Google Geo Location API 访问用户位置。
代码
self.browser = QWebEngineView()
self.browser.allowGeolocationOnInsecureOrigins(1)
错误
self.browser.allowGeolocationOnInsecureOrigins(1)
AttributeError: 'QWebEngineView' object has no attribute 'allowGeolocationOnInsecureOrigins'
【问题讨论】:
标签: python-3.x pyqt5 qwebengineview