[SOLVED] QWebView signals - calling C++ code from a webPage
My Qt app is using a few QWebView to display content, as it was easier for me to design web Gui than Qt Gui (using popular framework : bootstrap, font-awesome, css3, etc..)
Current example : https://www.dropbox.com/s/g91kj9t9bs2tn3v/WebViewInterface.png
I would like to listen to a few event from the QWebView, for example, a button press inside a webPage that would call some C++ code.
Is this possible? I'm thinking maybe use the "urlChanged(const QUrl & url)" Signal from the QWebView that would call some code, and make the button redirect to a specific action URL. This feel a bit hacky, would it be possible to listen to a specific button press inside a QwebView using another method? Thanks and feel free to comment, I don't know if mixing web content with Qt is a good idea but so far I like the result. I would have done the whole app on the web but I need to execute C++ code at some point :)
Good ressource here: