aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickwindow/data/active.qml
diff options
context:
space:
mode:
authorFabian Bumberger <fbumberger@rim.com>2014-01-18 16:45:33 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-19 19:13:35 +0100
commitc831a8e85afee6b257f8b3b1c5d86e4375b41e8c (patch)
treebf446d7ca42c871d3859d600e477be5e8426b2c0 /tests/auto/quick/qquickwindow/data/active.qml
parent12e55eaa653107982de9b88f6459f0e16660a35e (diff)
Behavior fix when creating QML windows
When a QML window is created it is set visible after the QQuickWindowQmlImpl component is complete. This works fine for a single window, but because componentCompleted is called first for the last created windows, the behavior is not as the user might expect (and different compared to version 2.0 of the QML Window API). One of the results is e.g. that a window which is created as a child object in QML will have a lower z-Order than the parent. On some platforms (e.g. BlackBerry) an even bigger problem arises because the first created window acts as a container for the whole application and is always shown fullscreen. On other platforms (Linux) the initial window position and the window focus ares not set correctly. This patch postpones showing windows until the "transientParent" is visible. [Changelog][QtQuick] Making a QtQuick Window visible is postponed till its transient parent is visible Task-number: QTBUG-37440 Change-Id: I09a94ff038c066a5d3298c6c103dafde50bef1fa Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Diffstat (limited to 'tests/auto/quick/qquickwindow/data/active.qml')
-rw-r--r--tests/auto/quick/qquickwindow/data/active.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/quick/qquickwindow/data/active.qml b/tests/auto/quick/qquickwindow/data/active.qml
index af0b7edeb2..4d47225b4e 100644
--- a/tests/auto/quick/qquickwindow/data/active.qml
+++ b/tests/auto/quick/qquickwindow/data/active.qml
@@ -14,7 +14,6 @@ Window {
anchors.fill: parent;
onPressed: window2.requestActivate();
}
- Component.onCompleted: window2.show();
}
Window {
@@ -22,6 +21,7 @@ Window {
objectName: "window2";
color: "#FF0000";
width: 100; height: 100;
+ visible: true
Item {
width: 100; height: 100;
}