Skip to content

Keyboard woes #9

Description

@shermp

I've spend the last couple of days trying to see if I could figure out how to do some sort of text input. I'm afraid I haven't gotten very far.

Getting a QLineEdit, or even a TouchLineEdit (which inherits QLineEdit) onto confirmation dialog is easy. But then I've got to try and attach a keyboard to it. And this is where I've gotten all in a muddle and a tangle.

There looks to be so many different pieces to the puzzle. KeyboardController (and ExtendedKeyboardController and SearchKeyboardController). KeyboardFrame. KeyboardReceiver. VirtualKeyboard. And I'm not really sure how they all interact with each other.

This is partially what I THINK might happen:

  • A KeyboardReceiver wraps a QLineEdit or QTextEdit (there's a constructor for both). I'm not really sure what this does, but I think it's the glue that connects a text edit widget with the keyboard
  • A KeyboardController manages a keyboard? It seems to be the derived class SearchKeyboardController that is mostly used. They have a method to set a KeyboardReceiver
  • There's a factory to create a SearchKeyboardController
  • And then there's KeyboardFrame. It has a method called createKeyboard that invokes the localizedKeyboard method of the above factory.

And yet, after all this digging, I STILL haven't managed to show a *****y keyboard on screen!

Has anyone (cough @pgaskin ) looked into how the keyboard system works? And how one might use it?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions