summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
Diffstat (limited to 'demos')
-rw-r--r--demos/qtdemo/qmlShell.qml7
1 files changed, 5 insertions, 2 deletions
diff --git a/demos/qtdemo/qmlShell.qml b/demos/qtdemo/qmlShell.qml
index b1ee79a..141531f 100644
--- a/demos/qtdemo/qmlShell.qml
+++ b/demos/qtdemo/qmlShell.qml
@@ -73,12 +73,15 @@ Item {
clip: true
source: qmlFile
anchors.centerIn: parent
- onStatusChanged: if(status == Loader.Ready) {
+ onStatusChanged:{
+ if(status == Loader.Null) {
+ loader.focus = false;//fixes QTBUG11411, probably because the focusScope needs to gain focus to focus the right child
+ }else if(status == Loader.Ready) {
if(loader.item.width > 640)
loader.item.width = 640;
if(loader.item.height > 480)
loader.item.height = 480;
- }
+ }}
}
Rectangle{ id: frame