aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/doc
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2020-06-26 15:29:15 +0200
committerMaximilian Goldstein <max.goldstein@qt.io>2020-07-09 08:57:38 +0200
commit5dbed7fa99ad540f9f86769c3c5d78ff15ee6a3f (patch)
treea1227895099d123b5267eaf3805ba88fd5dd269e /src/qml/doc
parent48ae309fcf86189b06064798467e6feddc0f58b3 (diff)
docs: Mention URL object in url documentation
Task-number: QTBUG-54988 Change-Id: I41c9cd0488db338b5dc1a2d5b8c4d707770b6ba8 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/doc')
-rw-r--r--src/qml/doc/src/qmllanguageref/typesystem/basictypes.qdoc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qml/doc/src/qmllanguageref/typesystem/basictypes.qdoc b/src/qml/doc/src/qmllanguageref/typesystem/basictypes.qdoc
index f35a56858b..ae3337f838 100644
--- a/src/qml/doc/src/qmllanguageref/typesystem/basictypes.qdoc
+++ b/src/qml/doc/src/qmllanguageref/typesystem/basictypes.qdoc
@@ -261,6 +261,11 @@ property is only invoked when the property is reassigned to a different object v
\l{qtqml-cppintegration-data.html}{passed into QML from C++} is automatically
converted into a \c url value, and vice-versa.
+ Alternatively you may convert your \c url to a \l{https://developer.mozilla.org/en-US/docs/Web/API/URL}{URL} object
+ in order to access and modify its components:
+ \qml
+ var urlObject = new URL(url);
+ \endqml
\section1 Using the url Type