0

Is there any other way instead of using QPrintDialog box to print i dont want to show dialog box in qt

QWebEngineView view;
view.setUrl(QUrl(html));

QWebEnginePage *webpage = view.page();
QPrinter printer(QPrinter::HighResolution);

QPrintDialog dialog(&printer, webpage->view());
if (dialog.exec() != QDialog::Accepted)
    return;
  

0 Answers0