I am displaying a web page using the below code. But the title always shows as our company name(XYZ).
QString msg;
QWebView view = new QWebView();
view->page()->mainFrame()->setHtml(msg);
view->show();
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.
The
QWebViewtitle property seems read-only, and can only be set by using/changing a title tag in the HTML document.However, the title of the window that pops up when the above code is run can be changed with
view->setWindowTitle(), like with any Qt widget which is used as a toplevel window.