Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-13338

QAxWidget does not receive and pass on Tab key press with some activeX controls

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.5.3, 4.6.3, 4.7.0
    • ActiveX Support
    • None

      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());
           }
       
      

        1. focus.cxx
          0.5 kB
        2. main.cpp
          0.6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes