title: QtWebEngine: Printing a webpage invoked by javascript
body: <p>From <a href="https://stackoverflow.com/questions/32711901/qwebengine-print-a-page">here</a>, I know that I can use <code>QWebEngineView::render</code>, passing in a pointer to my QPrinter object to programmatically print a web page.</p>
  
  <p>But if the print request was invoked by javascript (from the <code>window.print()</code> javascript function for instance), I don't know how to catch that request to then hand off to my print function.</p>