The most basic approach is QWebPage and QWebFrame::evaluateJavascript() (for simulating clicks).