After doing lots of web searches and some code reading, I think the problem is a bug in QinputMethod in Qt that is triggered by your Windows 7 IME for Korean. I think it is related to automatic closing of partially composed characters either done by a space or by enter. This bug may cause the loss of focus or it may inadvertently cause the cursor to become invisible.
If we can actually figure out what is happening (lost focus vs invisible cursor) we may be able to add workarounds to the code. I would try adding your own QinputMethodEvent handler to your simple code example and use QDebug to log all of the QInputMethod events so that we can see exactly what Qt is receiving from the Windows IME under Korean on your system. So you need to subclass QWebPage/QWebView and overload the QinputMethodEvent handler and log what comes in event wise from your IME.
KevinH
|