WebEngineViewer::WebEngineExportPdfPageJob Class
The WebEngineExportHtmlPageJob class Author: Laurent Montel <montel@kde.org>. More...
| Header: | #include <WebEngineViewer/WebEngineExportPdfPageJob> |
| CMake: | find_package(KPim6WebEngineViewer REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::WebEngineViewer) |
| Inherits: | QObject |
Public Functions
| WebEngineExportPdfPageJob(QObject *parent = nullptr) | |
| virtual | ~WebEngineExportPdfPageJob() override |
| bool | canStart() const |
| QWebEngineView * | engineView() const |
| QString | pdfPath() const |
| void | setEngineView(QWebEngineView *engineView) |
| void | setPdfPath(const QString &pdfPath) |
| void | start() |
Signals
| void | exportPdfFailed() |
| void | exportToPdfSuccess() |
Detailed Description
Member Function Documentation
[explicit] WebEngineExportPdfPageJob::WebEngineExportPdfPageJob(QObject *parent = nullptr)
Constructs a WebEngineExportPdfPageJob with the given parent.
[override virtual noexcept] WebEngineExportPdfPageJob::~WebEngineExportPdfPageJob()
Destroys the WebEngineExportPdfPageJob object.
bool WebEngineExportPdfPageJob::canStart() const
Returns whether the job can be started.
QWebEngineView *WebEngineExportPdfPageJob::engineView() const
Returns the QWebEngineView associated with this job.
See also setEngineView().
[signal] void WebEngineExportPdfPageJob::exportPdfFailed()
Emitted when the PDF export fails.
[signal] void WebEngineExportPdfPageJob::exportToPdfSuccess()
Emitted when the PDF export succeeds.
QString WebEngineExportPdfPageJob::pdfPath() const
Returns the PDF file path.
See also setPdfPath().
void WebEngineExportPdfPageJob::setEngineView(QWebEngineView *engineView)
Sets the QWebEngineView for the PDF export.
See also engineView().
void WebEngineExportPdfPageJob::setPdfPath(const QString &pdfPath)
Sets the PDF file path.
See also pdfPath().
void WebEngineExportPdfPageJob::start()
Starts the PDF export job.