PDA

View Full Version : QtWebKit and clickEvent from textarea



keen
30th June 2010, 15:15
Hi there!

My problem is about QtWebKit. Suppose, I have any web page and some text fields on it (e.g. input type=submit or textarea).

I need to catch "left button release" event from mouse, when I clicked to any text field on webpage. Additionaly, I need get a text from clicked field (and cursor position, if any).

Digging to sources of Qt.4.6.2 give me some cases:
1. EventHandler::handleMouseReleaseEvent
2. InputElement::dispatchFocusEvent

But there is many problems with this cases.

Is there any docs about qtwebkit internals? Or, maybe, any guys, who implemented similar task? )

Thanks!