Hi,

I'm trying to grab the keyboard input on a QWindow created with QWindow::fromWinId from a HWND pointer, in Windows. I simply can't!

The HWND pointer is provided by another application as this windows is supposed to appear as a Tool window of the application.

This is what I am doing:

_window = QWindow::fromWinId((WId)ptr);
_window->requestActivate();
_window->setKeyboardGrabEnabled(true);

I have also tried the following without success:

_widget = QWidget::createWindowContainer(_window);
_widget->setFocus();
_widget->grabKeyboard();

What am I missing?

Thx,

Regards,

Nuno
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to