[Interest] Avoid swallowing of keystokes with createWindowContainer?

Gav Wood qtinterest at gavwood.com
Thu Jun 13 11:36:04 CEST 2013


I'm working with QtQuick in Qt 5.1 and using a hybrid QtWidgets/QtGui
approach with the new QWidget::createWindowContainer to create a
QQuickView-powered QWidget.

My QWidgets application uses QActions with global shortcuts to access
various functionality. Unfortunately, the new widget returned by
QWidget::createWindowContainer seems to swallow all keyboard input
when it has focus, which given it's the main mouse-interaction
component is most of the time.

Is there a simple workaround for this?


In the course of a normal year, more people die from falling off
horses than from taking ecstasy.

More information about the Interest mailing list