PrintWorker

class PrintWorker : public QObject

Public Functions

explicit PrintWorker(QObject *parent = nullptr, const QString &str = "")

This is the constructor which sets a data member to the HTML text passed to it.

Parameters:
  • parent

  • str

~PrintWorker()

Destructor.

Public Slots

void printPDF()

It prints the PDF in a file.