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?
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(andExtendedKeyboardControllerandSearchKeyboardController).KeyboardFrame.KeyboardReceiver.VirtualKeyboard. And I'm not really sure how they all interact with each other.This is partially what I THINK might happen:
KeyboardReceiverwraps aQLineEditorQTextEdit(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 keyboardKeyboardControllermanages a keyboard? It seems to be the derived classSearchKeyboardControllerthat is mostly used. They have a method to set aKeyboardReceivercreateKeyboardthat invokes thelocalizedKeyboardmethod 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?