Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

SetNetworkAccessManager(0);



  • 继承自QWebPage的子类中的构造函数中调用了setNetworkAccessManager(0)。

    程序还能打开网页。
    为什么会这样?
    QWebPage不需要一个QNetworkAccessManager吗?



  • 个人认为如未显示指定QNetworkAccessManager则Qt将会在内部创建一个,具体细节请查看源码


Log in to reply