Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
以下のコードを使用してWebページを表示しています。ただし、タイトルは常に当社の会社名 (XYZ) として表示されます。
QString msg; QWebView view = new QWebView(); view->page()->mainFrame()->setHtml(msg); view->show();
title プロパティは読み取り専用のQWebViewようで、HTML ドキュメントで title タグを使用または変更することによってのみ設定できます。
QWebView
ただし、上記のコードを実行したときにポップアップするウィンドウのタイトルはview->setWindowTitle()、トップレベル ウィンドウとして使用される Qt ウィジェットと同様に、 で変更できます。
view->setWindowTitle()