Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
72
73#endif // QT_NO_PRINTER
74
76
77#endif // QPRINTENGINE_H
\inmodule QtCore
Definition qmargins.h:270
\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:65
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
#define Q_DECLARE_METATYPE(TYPE)
Definition qmetatype.h:1525
GLuint64 key