-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.7.1
-
None
-
Qt 5.7.1, Linux Mint 18, Cinnamon Desktop Environment.
-
1041a95eb07e5cd25d96eec9dfc2243144638183
When you dynamically create a Popup it can't find a window to open in, even when it's parent is an ApplicationWindow.
import QtQuick 2.7 import QtQuick.Controls 2.0 ApplicationWindow { id: appWindow visible: true width: 640 height: 480 Button { text: "Show Popup" onClicked: { var newObject = Qt.createQmlObject( 'import QtQuick.Controls 2.0; import QtQuick 2.7; Popup { Text { text: "hello"} }', appWindow, "dynamicSnippet1"); newObject.open() } } }