Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Menu in Widget embedded QQuickView

$
0
0
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.

Viewing all articles
Browse latest Browse all 4972

Trending Articles