summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorCaroline Chao <caroline.chao@digia.com>2013-06-20 10:48:59 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-06-20 13:37:41 +0200
commitca94153b2108ce0423316540a049261c7a33f85c (patch)
tree10f5bb2cc983197b75c2c4b488c14708aac13b08 /examples
parentd66245f1e8ebee65354a37c30d421a115dd0e383 (diff)
downloadqtquickcontrols-ca94153b2108ce0423316540a049261c7a33f85c.tar.gz
Text example: specify the base URL for the TextArea
So the TextArea looks inside its own resource file while resolving relative urls used in the text. Change-Id: Id67f3f3cbbd635e8defa04d97602e1e7b293874e Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/quick/controls/text/qml/main.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/quick/controls/text/qml/main.qml b/examples/quick/controls/text/qml/main.qml
index d8f175ed..0d7ede25 100644
--- a/examples/quick/controls/text/qml/main.qml
+++ b/examples/quick/controls/text/qml/main.qml
@@ -317,6 +317,7 @@ ApplicationWindow {
width: parent.width
anchors.top: secondaryToolBar.bottom
anchors.bottom: parent.bottom
+ baseUrl: "qrc:/"
text: document.text
textFormat: Qt.RichText
Component.onCompleted: forceActiveFocus()