[PyQt] Trigger mouse click on arbitrary coordinate using Webkit?

Yao Ko koyao at raptr.com
Tue Jul 27 02:10:47 BST 2010


Hi,

I'm using Qt Webkit to load a a webpage and interact with it.  Is
there a way to programmatically trigger a mouse click given the X, Y
coordinates of a webpage?

So far, I was able to use QWebFrame.hitTestContent(QPoint) to get the
QWebElement under the given QPoint.  However, the element is a Flash
object, and I'd like to trigger a mouse click somewhere on that Flash
object.

Any suggestions?

Thanks,
Yao


More information about the PyQt mailing list