this is code
QWebView* webView=new QWebView(this);
webView->page()->setLinkDelegationPolicy(QWebPage::DelegateAllLinks);
webView->load(QUrl(newsUrl));
After Delete any case, there will be some memory can not be deleted
If you set the object parent in the constructor using this
( QWebView* webView=new QWebView(this); )
Then you should not call delete directly the memory will be freed when the class you provided as a parent will be destroyed
If you want to use delete then simply construct the object like this:
QWebView* webView=new QWebView();