Better document with examples how relative paths are resolved.

Change-Id: Ia52956889216d11d7bb10307f09b582b55d0b4cd
Reviewed-by: Martin Jones <martin.jones@nokia.com>
This commit is contained in:
Andrew den Exter 2012-02-14 10:18:38 +10:00 committed by Qt by Nokia
parent e4eb6b2995
commit ccc05e55f4
1 changed files with 14 additions and 0 deletions

View File

@ -1760,6 +1760,20 @@ void QQuickText::setElideMode(QQuickText::TextElideMode mode)
This property specifies a base URL which is used to resolve relative URLs
within the text.
Urls are resolved to be within the same directory as the target of the base
URL meaning any portion of the path after the last '/' will be ignored.
\table
\header \o Base URL \o Relative URL \o Resolved URL
\row \o http://qt-project.org/ \o images/logo.png \o http://qt-project.org/images/logo.png
\row \o http://qt-project.org/index.html \o images/logo.png \o http://qt-project.org/images/logo.png
\row \o http://qt-project.org/content \o images/logo.png \o http://qt-project.org/content/images/logo.png
\row \o http://qt-project.org/content/ \o images/logo.png \o http://qt-project.org/content/images/logo.png
\row \o http://qt-project.org/content/index.html \o images/logo.png \o http://qt-project.org/content/images/logo.png
\row \o http://qt-project.org/content/index.html \o ../images/logo.png \o http://qt-project.org/images/logo.png
\row \o http://qt-project.org/content/index.html \o /images/logo.png \o http://qt-project.org/images/logo.png
\endtable
By default is the url of the Text element.
*/