SetNetworkAccessManager(0);



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

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



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


Log in to reply
 

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