I have a QQuickView inside a Window container in a QMainWindow created like this:
QQuickView* viewer = new QQuickView();
QWidget* container = createWindowContainer(viewer, this);
...
setCentralWidget(container);
In QML I then create a Menu and onClicked call menu.popup(). I end up with “void QWindow::setTransientParent(QWindow*) QQuickView(0×157afa0) must be a top level window.” and the menu showing in the corner of my screen rather than where I clicked.
↧