Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
4.5.3, 4.6.3, 4.7.0
-
None
Description
It seems this is a regression introduced between 4.4.3 and 4.5.0
Attached is a test case to reproduce
Following is a patch that seems to work around the issue (patch for 4.7.0 rc but works also with 4.5.3):
diff --git "a/src/activeqt/container/qaxwidget.cpp" "b/src/activeqt/container/qaxwidget.cpp" index d010bcc..f4c0677 100644 --- "a/src/activeqt/container/qaxwidget.cpp" +++ "b/src/activeqt/container/qaxwidget.cpp" @@ -727,7 +727,7 @@ bool QAxClientSite::activateObject(bool initialized, const QByteArray &data) host->show(); if (host->focusPolicy() != Qt::NoFocus) { - widget->setFocusProxy(host); + host->setFocusProxy(widget); widget->setFocusPolicy(host->focusPolicy()); }
Attachments
Issue Links
- is required for
-
QTBUG-24209 Qt 5.0 - Windows: Fix the QtActiveQt module
- Closed