Qt WebKit: Virtual Keyboard

March 16, 2009 Matteo Bertozzi | Filed Under Qt4 | 1 Comment

The Development of “Moko Touch” (My iPhone Clone for OpenMoko) goes on, And I’m writing a Mobile WebKit Browser. But The Phone need a Virtual Keyboard, and I Need to handle the WebKit forms. Internal WebKit/VirtualKeyboard of QtExtended doesn’t handle password forms… So, here an example of How to Add a Virtual Keyboard to your QWebView.

QWebKit Virtual Keyboard

Usage is easy, load your web page click on a Editable form and the keyboard will magically appear, click out of a form and keyboard will magically disappear :)

The code use a lot of JavaScript to handle the form click and focused out, and I don’t like it! So, If you’ve suggestions on how to implement it differently, post a comment or send me a mail! Thanks.

The Source Code is Available here: QtWebKit Virtual Keyboard Source Code.

1 Comment »

RSS feed for comments on this post. TrackBack URI

  1. Great post! Is there any way to do this generally (like write a Qt-driven virtual keyboard that works with any app)? That would be great!

    Again, awesome stuff!

    Comment by Peter — April 15, 2009 #

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>