From f3707610776d3a1e9d92d136b92b66ff66fefb7f Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Fri, 27 Jan 2012 15:58:22 +1000 Subject: Document QRC restriction. Task-number: QTBUG-23362 Change-Id: If4793a2224f2fdbe44df346c762cd061f8471b77 Reviewed-by: Martin Jones --- doc/src/declarative/basictypes.qdoc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc/src') diff --git a/doc/src/declarative/basictypes.qdoc b/doc/src/declarative/basictypes.qdoc index 7d707e0ce0..80576f63ab 100644 --- a/doc/src/declarative/basictypes.qdoc +++ b/doc/src/declarative/basictypes.qdoc @@ -154,6 +154,11 @@ Image { source: "pics/logo.png" } \endqml + Note that as QML requires URL paths, you should use "qrc:///" instead of ":/" for + referring to files stored with the \l{resources.html}{Qt Resource System}. + Usually you will only have to do this once, because relative URLs resolved from + that file will use the same protocol. + \sa {QML Basic Types} */ -- cgit v1.2.3