Qt 6.11 is out! See what's new in the release
blog
CreateWindowContainer steals focus from application
General and Desktop
1
Posts
1
Posters
815
Views
1
Watching
-
I'm trying to use the new QtQuick items, and when I embed a QML item inside a widget, I am unable to click on anything within the parent widget.
QWidget *container = QWidget::createWindowContainer( qView, mpMainDisplay );
container->setGeometry(x, y, width, height);
container->show();
qView->show()mpMainDisplay is the primary widget for the application (a QWidget) and qView is a QQuickView.
Is there anyway to stop the new QML instance from taking all focus? I've tried using the NoFocus policy without any luck. I've also tried setFocus and activeWindow on mpMainDisplay without any luck.