I've loaded a webpage in QT using a QWebPage object and its mainFrame()->load() function. On this webpage there's a form with two buttons, an ok button and a cancel button. I'm wanting to be able to activate either button but, browsing the docs, I can't figure out how to do it.
I've spotted the triggerAction() function but there doesn't seem to be a relevant item in the WebAction enum. I've also spotted the NavigationType enum which contains an NavigationTypeFormSubmitted item but that seems to only be used, after an event has been triggered, by the acceptNavigationRequest() function.
Bookmarks