Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qprintengine.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QPRINTENGINE_H
5#define QPRINTENGINE_H
6
7#include <QtPrintSupport/qtprintsupportglobal.h>
8#include <QtCore/qvariant.h>
9#include <QtPrintSupport/qprinter.h>
10
11// ### move to qmargins.h
13
15
16
17#ifndef QT_NO_PRINTER
18
19class Q_PRINTSUPPORT_EXPORT QPrintEngine
20{
21public:
22 virtual ~QPrintEngine() {}
42
45
47
57 PPK_PaperSize = PPK_PageSize,
58
59 PPK_CustomBase = 0xff00
60 };
61
64
65 virtual bool newPage() = 0;
66 virtual bool abort() = 0;
67
69
71};
72
73#endif // QT_NO_PRINTER
74
76
77#endif // QPRINTENGINE_H
\inmodule QtCore
Definition qmargins.h:274
\reentrant
virtual QPrinter::PrinterState printerState() const =0
Returns the current state of the printer being used by the print engine.
virtual void setProperty(PrintEnginePropertyKey key, const QVariant &value)=0
Sets the print engine's property specified by key to the given value.
virtual QVariant property(PrintEnginePropertyKey key) const =0
Returns the print engine's property specified by key.
PrintEnginePropertyKey
This enum is used to communicate properties between the print engine and QPrinter.
@ PPK_SupportedResolutions
@ PPK_SupportsMultipleCopies
virtual ~QPrintEngine()
Destroys the print engine.
virtual bool newPage()=0
Instructs the print engine to start a new page.
virtual int metric(QPaintDevice::PaintDeviceMetric) const =0
Returns the metric for the given id.
virtual bool abort()=0
Instructs the print engine to abort the printing process.
PrinterState
\value Idle \value Active \value Aborted \value Error
Definition qprinter.h:64
\inmodule QtCore
Definition qvariant.h:64
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
#define Q_DECLARE_METATYPE(TYPE)
Definition qmetatype.h:1504
GLuint64 key