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

QPlatformInputContext does not show on new focus if not a MouseFocus

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 5.12.5
    • None
    • Intel Platform running RHEL 8.3 with QT 5.12.5 from Redhat RPMs
    • Linux/X11

      When using a QPlatformInputContext based virtual keyboard, I noticed that the keyboard only shows natively when the input widget is clicked. If either a setFocus call is used, or a tab is used to change the focus the virtual keyboard does not show. In the setFocus case, directly calling InputMethod->show did not help as while showInputPanel was invoked, the setFocusObject call had not yet occured (and in our case, that was needed for proper virtual keyboard operation).

      I managed a workaround by subclassing the input widget and adding a timer to call show after enough time (about 50 ms) for the setFocusObject call to have occurred. 

      What I think is needed here is more consistent operation of the QPlatformInputContext for the different types of focus changes. This includes both informing the context of the current focus object and calling set panel.

        1. focusissuedemo.tar.gz
          12 kB
          Dale Pennington
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            vestbo Tor Arne Vestbø
            dalepennington Dale Pennington
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes