Commit fd2acd57 authored by Jüri Valdmann's avatar Jüri Valdmann Committed by Kai Koehne
Browse files

Clarify documentation of QWebEnginePage::title()


Explain what happens when the HTML has no proper <title> defined and clarify the
meaning of 'by default': it refers to the state before load()/setUrl()/etc.

Fixes: QTBUG-71799
Change-Id: Ib2669007573b3ea53e205d9228237bae392f6f78
Reviewed-by: default avatarMichael Brüning <michael.bruning@qt.io>
Reviewed-by: default avatarLeena Miettinen <riitta-leena.miettinen@qt.io>
Showing with 8 additions and 2 deletions
......@@ -643,6 +643,12 @@
\property QWebEnginePage::title
\brief the title of the page as defined by the HTML \c <title> element
If the page has no \c <title> element, then the URL is used instead. For \c
file:// URLs only the filename is used and not the full path.
By default, before any content has been loaded, this property contains an
empty string.
\sa titleChanged()
*/
......
......@@ -173,9 +173,9 @@
/*!
\property QWebEngineView::title
\brief the title of the web page currently viewed
\brief the title of the page as defined by the HTML \c <title> element
By default, this property contains an empty string.
Equivalent to \l {QWebEnginePage::title()}.
\sa titleChanged()
*/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment