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

Win: Focus issues when embedding into non-Qt apps

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.14.2, 6.3.1, 6.3.2, 6.6.0
    • QPA: Windows
    • None
    • Windows 8-11
    • Windows

    Description

      We embed Qt controls into native floating palettes of Adobe Illustrator. In certain situations (semi-expanded palettes, see the screenshot), the Qt controls don't get the focus when clicked. Namely, when WM_MOUSEACTIVATE is unhandled, then WM_SETFOCUS is never sent. Therefore the proposed patch adds handling of QtWindows::MouseActivateWindowEvent for embedded widgets:

              if (platformWindow->isEmbedded()) {
                  *result = LRESULT(MA_ACTIVATE);
                  return true;
      {{        }}}

      Attachments

        For Gerrit Dashboard: QTBUG-119199
        # Subject Branch Project Status CR V

        Activity

          People

            owolff Oliver Wolff
            jan.patera Jan Patera
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change