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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you set the object parent in the constructor using 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: