diff options
| author | Caroline Chao <caroline.chao@digia.com> | 2013-06-20 10:48:59 +0200 |
|---|---|---|
| committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-06-20 13:37:41 +0200 |
| commit | ca94153b2108ce0423316540a049261c7a33f85c (patch) | |
| tree | 10f5bb2cc983197b75c2c4b488c14708aac13b08 /examples/quick/controls/text | |
| parent | d66245f1e8ebee65354a37c30d421a115dd0e383 (diff) | |
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/quick/controls/text')
| -rw-r--r-- | examples/quick/controls/text/qml/main.qml | 1 |
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 d8f175ed1..0d7ede255 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() |
