diff options
author | Tomi Korpipaa <tomi.korpipaa@qt.io> | 2024-05-07 11:44:06 +0300 |
---|---|---|
committer | Tomi Korpipaa <tomi.korpipaa@qt.io> | 2024-05-08 16:24:59 +0300 |
commit | 28ff6b2b7c56f90c84ec2cc689bc705bbad1aaac (patch) | |
tree | 6b6f58a8fc746267ed6608157a1b77265f204e45 | |
parent | da4c8387d1ea14dc78018d605a26bcc46c44afe8 (diff) |
Remove erroneous known issue
Update a manual test to try it
Change-Id: I1a12eaf0cd759b483c3801bfc6983d1559055328
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
-rw-r--r-- | src/doc/qtgraphs.qdoc | 1 | ||||
-rw-r--r-- | tests/manual/qmlmultitest/qml/qmlmultitest/main.qml | 21 |
2 files changed, 19 insertions, 3 deletions
diff --git a/src/doc/qtgraphs.qdoc b/src/doc/qtgraphs.qdoc index daa2b95..6d5c941 100644 --- a/src/doc/qtgraphs.qdoc +++ b/src/doc/qtgraphs.qdoc @@ -158,7 +158,6 @@ \list \li Surfaces with non-straight rows and columns do not always render properly. \li Widget based examples layout incorrectly in iOS. - \li Reparenting a graph to an item in another QQuickWindow is not supported. \li Android qmake builds of QML applications importing QtGraphs also require "QT += graphs" in the pro file. This is because Qt Graphs QML plugin has a dependency to Qt Graphs C++ library, which Qt Creator diff --git a/tests/manual/qmlmultitest/qml/qmlmultitest/main.qml b/tests/manual/qmlmultitest/qml/qmlmultitest/main.qml index 84a2b9f..727d14e 100644 --- a/tests/manual/qmlmultitest/qml/qmlmultitest/main.qml +++ b/tests/manual/qmlmultitest/qml/qmlmultitest/main.qml @@ -4,6 +4,7 @@ import QtQuick import QtQuick.Layouts import QtQuick.Controls +import QtQuick.Window import QtGraphs import "." @@ -12,6 +13,18 @@ Item { width: 800 height: 600 + Window { + id: anotherWin + visible: false + width: 400 + height: 300 + + Item { + id: anotherOne + anchors.fill: parent + } + } + Data { id: data } @@ -94,8 +107,11 @@ Item { Layout.minimumWidth: parent.width / 2 Layout.fillHeight: true Layout.fillWidth: true - text: "Quit" - onClicked: Qt.quit(); + text: "Surprise!" + onClicked: { + anotherWin.visible = !anotherWin.visible + scatterGraph.parent = scatterGraph.parent === anotherOne ? theFirstOne : anotherOne + } } Button { @@ -116,6 +132,7 @@ Item { } Rectangle { + id: theFirstOne Layout.fillHeight: true Layout.fillWidth: true border.color: scatterGraph.theme.gridMainColor |