When you add a new tab connect the QWebView::titleChanged() signal to a common slot that either changes the relevant tab text, main window title bar text, or both. You can set the text on the tab with QTabWidget::setTabText() or in the main window title bar with QWidget::setWindowTitle(). You can determine which tab corresponds to the QWebView sender by using QTabWidget::indexOf().




Reply With Quote

Bookmarks