55 bool isDefault()
const;
56 bool isRemote()
const;
62 bool supportsMultipleCopies()
const;
63 bool supportsCollateCopies()
const;
66 QList<QPageSize> supportedPageSizes()
const;
74 bool supportsCustomPageSizes()
const;
76 QSize minimumPhysicalPageSize()
const;
77 QSize maximumPhysicalPageSize()
const;
81 int defaultResolution()
const;
82 QList<int> supportedResolutions()
const;
85 QList<QPrint::InputSlot> supportedInputSlots()
const;
88 QList<QPrint::OutputBin> supportedOutputBins()
const;
91 QList<QPrint::DuplexMode> supportedDuplexModes()
const;
94 QList<QPrint::ColorMode> supportedColorModes()
const;
97 PDPK_CustomBase = 0xff00
102 bool isFeatureAvailable(PrintDevicePropertyKey
key,
const QVariant &
params)
const;
104#if QT_CONFIG(mimetype)
105 QList<QMimeType> supportedMimeTypes()
const;
108# ifndef QT_NO_DEBUG_STREAM
116 QSharedPointer<QPlatformPrintDevice>
d;
Orientation
This enum type defines the page orientation.
Unit
This enum type is used to specify the measurement unit for page sizes.
PageSizeId
This enum type lists the available page sizes as defined in the Postscript PPD standard.
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)