4#ifndef QPPDPRINTDEVICE_H
5#define QPPDPRINTDEVICE_H
18#include <qpa/qplatformprintdevice.h>
20#include <QtCore/qbytearray.h>
21#include <QtCore/qhash.h>
22#include <QtCore/qmargins.h>
43 int resolution)
const override;
66#if QT_CONFIG(mimetype)
67 void loadMimeTypes()
const override;
72 cups_ptype_e printerTypeFlags()
const;
74 cups_dest_t *m_cupsDest;
79 mutable QHash<QString, QMarginsF> m_printableMargins;
Orientation
This enum type defines the page orientation.
void loadResolutions() const override
QPrint::InputSlot defaultInputSlot() const override
int defaultResolution() const override
QMarginsF printableMargins(const QPageSize &pageSize, QPageLayout::Orientation orientation, int resolution) const override
QPrint::OutputBin defaultOutputBin() const override
void loadPageSizes() const override
QPageSize defaultPageSize() const override
bool isFeatureAvailable(QPrintDevice::PrintDevicePropertyKey key, const QVariant ¶ms) const override
void loadInputSlots() const override
QPrint::DeviceState state() const override
void loadDuplexModes() const override
QPpdPrintDevice(const QString &id)
QPrint::ColorMode defaultColorMode() const override
void loadColorModes() const override
QPrint::DuplexMode defaultDuplexMode() const override
void loadOutputBins() const override
virtual ~QPpdPrintDevice()
bool isDefault() const override
bool isValid() const override
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
args<< 1<< 2;QJSValue threeAgain=fun.call(args);QString fileName="helloworld.qs";QFile scriptFile(fileName);if(!scriptFile.open(QIODevice::ReadOnly)) QTextStream stream(&scriptFile);QString contents=stream.readAll();scriptFile.close();myEngine.evaluate(contents, fileName);myEngine.globalObject().setProperty("myNumber", 123);...QJSValue myNumberPlusOne=myEngine.evaluate("myNumber + 1");QJSValue result=myEngine.evaluate(...);if(result.isError()) qDebug()<< "Uncaught exception at line"<< result.property("lineNumber").toInt()<< ":"<< result.toString();QPushButton *button=new QPushButton;QJSValue scriptButton=myEngine.newQObject(button);myEngine.globalObject().setProperty("button", scriptButton);myEngine.evaluate("button.checkable = true");qDebug()<< scriptButton.property("checkable").toBool();scriptButton.property("show").call();QJSEngine engine;QObject *myQObject=new QObject();myQObject- setProperty)("dynamicProperty", 3)