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

Windows virtual keyboard is not showing when touching QLineEdit

    XMLWordPrintable

Details

    • Windows

    Description

      Qt is supporting native virtual keyboard when touching QLineEdit widget using a touch screen.

      It works well when no native child windows were created (e.g. no call to QWidget::winId(), not using WA_NativeWindow etc). So only if the top-window has a native window then the native virtual keyboard will open well when touching the QLineEdit control.

      But if calling to winId() on one of the child widgets which creates a native child-window, or if setting the attribute Qt::AA_NativeWindows on startup - then the native keyboard is not showing when touching the edit widget.

      Tried to debug QWindowsInputContext::showInputPanel() and looks like it calls the correct Windows APIs as expected (ImmAssociateContextEx) but still the virtual keyboard is not showing.

      Maybe it is related to this? https://codereview.qt-project.org/c/qt/qtbase/+/232927

       

      Attachments

        Activity

          People

            owolff Oliver Wolff
            dadi Eldad Kuperman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: