Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Send Mouse Click to WebEngineView
updatesvc last edited by updatesvc
I am making a WebAutomation tool,I would like to know how I could send mouse events to the WebEngineView.
Here are some things I have tried but haven't work.
event= createMouseEvent(QEvent::MouseButtonPress, QPoint(mouse_x,mouse_y), Qt::LeftButton, Qt::LeftButton, Qt::NoModifier); QApplication::instance()->sendEvent(view,event);
QTestEventList eventos; eventos.addMouseClick(Qt::LeftButton, 0, QPoint(mouse_x,mouse_y), -1); eventos.simulate(view);
where view is a QWebEngine View.
i would prefer a solution thats cross platform and can work when the window is minimised or not in view.
A noob friendly explanation will be greatly apprecieated.
Thanks in advance.
ThatDud3 last edited by
You can try the suggested solution here