0

我想像这个 QWebEngine 代码一样对 QQmlApplicationEngine 进行网络配置:

web = QWebEngineView()
pf = QWebEngineProfile("unsurf", web)
page = QWebEnginePage(pf, web)
web.setPage(page)

我找到了 QQuickWebEngineProfile,但找不到设置它的方法,它是空配置文件。

profile = QtWebEngine.QQuickWebEngineProfile("foo")
profile.isOffTheRecord() #True

如何为QQmlApplicationEngine设置有效的命名QQuickWebEngineProfile?

4

0 回答 0