Unsolved Communication between Virtual Keyboard and the rest of my QML
-
Howdy folks!
Our software utilizes the QVirtualKeyboard in our application. In addition to providing QWERTY and numeric keyboards, we use it to provide custom keyboards for our built in scripting. This has served us well for years.
Our top-level QML component contains the InputPanel component for our KeyboardLayoutLoader.
I've run into a feature request to have our keyboard default to a particular layout when a user begins entry in one of our scripting fields (which is multiple children down from the main component). For the life of me, I cannot find a way to communicate with the KeyboardLayoutLoader to say "before opening, switch to this layout".
Since Qt seems to do some magic to dynamically load the keyboard into the inputpanel, I cannot find a way to communicate properties to the KeyboardLayoutLoader to let it know which keyboard to load initially.
I'd love to simply say "inputPanel.keyboardToUse = <keyboard>" but it doesn't seem like Qt provides any way to do this.
Am I crazy? Feels like there should be a simple mechanism here? What are my options? Any advice is appreciated!