summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-06-10 04:57:51 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-06-10 04:57:51 (GMT)
commit4dc4cfac667389efda4a43df5ff8cfa4ba305a2f (patch)
tree5c937ab2e510edb7a359b225132544d938a884a9 /doc
parent29496148abe8506fbf50c99e9a210095c5115a14 (diff)
downloadQt-4dc4cfac667389efda4a43df5ff8cfa4ba305a2f.zip
Qt-4dc4cfac667389efda4a43df5ff8cfa4ba305a2f.tar.gz
Qt-4dc4cfac667389efda4a43df5ff8cfa4ba305a2f.tar.bz2
Support URLs directly (not just as strings), so they are correctly resolved.
URLs expressed as strings (possible relative) are resolved relative to the component in which the string expression is converted to a url value. All items are converted to use QUrl properties, except SqlConnection, where the databasename is only a special-case URL (this may need further consideration).
Diffstat (limited to 'doc')
-rw-r--r--doc/src/declarative/basictypes.qdoc20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/src/declarative/basictypes.qdoc b/doc/src/declarative/basictypes.qdoc
index f7eee50..2ef91e6 100644
--- a/doc/src/declarative/basictypes.qdoc
+++ b/doc/src/declarative/basictypes.qdoc
@@ -82,6 +82,26 @@
\raw HTML
\endraw
+ \target basicqmlurl
+ \raw HTML
+ <br>
+ <table>
+ <tr><td><div class="qmltype">url</div></td></tr>
+ </table>
+ \endraw
+
+ URLs are resource locators, such as file names. They can be either absolute, like "http://qtsoftware.com",
+ or relative, like "pics/logo.png". Relative URLs are resolved relative to the URL of the component where
+ the URL is converted from a JavaScript string expression to a url property value.
+
+ Setting a url looks like this:
+ \code
+ Image { source: "pics/logo.png" }
+ \endcode
+
+ \raw HTML
+ \endraw
+
\target basicqmlcolor
\raw HTML
<br>