chameria-webview-factory/src/main/java/de/akquinet/chameria/webview/WebViewFactory.java
public void print(QWebView view) {
        if (m_print) {
            QPrinter printer = new QPrinter();
            QPrintDialog printDialog = new QPrintDialog(printer, view);
            if (printDialog.exec() == QDialog.DialogCode.Accepted.value()) {
                // print ...
                view.print(printer);
            }
        } else {
            m_logger.warn("Print disabled");
        }
    }
public void print(QWebView view) {
        if (m_print) {
            QPrinter printer = new QPrinter();
            QPrintDialog printDialog = new QPrintDialog(printer, view);
            if (printDialog.exec() == QDialog.DialogCode.Accepted.value()) {
                // print ...
                view.print(printer);
            }
        } else {
            m_logger.warn("Print disabled");
        }
    }
Print callback.
Checks if the print feature is enabled. If so, launch the system
print job.
@param view the view to print