Skip to content

PythonQt.QtGui.QOpenGLPaintDevice · declarations 001

Back to PythonQt.QtGui.QOpenGLPaintDevice

context

context() -> Any

X.context() -> PythonQt.QtGui.QOpenGLContext

Supplemental documentation: Qt 5 reference:

QOpenGLContext *QOpenGLPaintDevice::context() const

Returns the OpenGL context associated with the paint device.

Source: https://doc.qt.io/archives/qt-5.15/qopenglpaintdevice.html#context

dotsPerMeterX

dotsPerMeterX() -> float

X.dotsPerMeterX() -> float

Supplemental documentation: Qt 5 reference:

qreal QOpenGLPaintDevice::dotsPerMeterX() const

Returns the number of pixels per meter horizontally.

See also setDotsPerMeterX().

Source: https://doc.qt.io/archives/qt-5.15/qopenglpaintdevice.html#dotsPerMeterX

dotsPerMeterY

dotsPerMeterY() -> float

X.dotsPerMeterY() -> float

Supplemental documentation: Qt 5 reference:

qreal QOpenGLPaintDevice::dotsPerMeterY() const

Returns the number of pixels per meter vertically.

See also setDotsPerMeterY().

Source: https://doc.qt.io/archives/qt-5.15/qopenglpaintdevice.html#dotsPerMeterY

ensureActiveTarget

ensureActiveTarget() -> Any

X.ensureActiveTarget()

Supplemental documentation: Qt 5 reference:

[virtual] void QOpenGLPaintDevice::ensureActiveTarget()

This virtual method is provided as a callback to allow re-binding a target frame buffer object or context when different QOpenGLPaintDevice instances are issuing draw calls alternately.

beginNativePainting() will also trigger this method.

The default implementation does nothing.

Source: https://doc.qt.io/archives/qt-5.15/qopenglpaintdevice.html#ensureActiveTarget

metric

metric(metric: Any) -> int

X.metric(metric) -> int

Supplemental documentation: Qt 5 reference:

[override virtual protected] int QOpenGLPaintDevice::metric(QPaintDevice::PaintDeviceMetric metric) const

Reimplements: QPaintDevice::metric(QPaintDevice::PaintDeviceMetric metric) const.

Source: https://doc.qt.io/archives/qt-5.15/qopenglpaintdevice.html#metric

paintEngine

paintEngine() -> Any

X.paintEngine() -> PythonQt.QtGui.QPaintEngine

Supplemental documentation: Qt 5 reference:

[override virtual] QPaintEngine *QOpenGLPaintDevice::paintEngine() const

Reimplements: QPaintDevice::paintEngine() const.

Source: https://doc.qt.io/archives/qt-5.15/qopenglpaintdevice.html#paintEngine

paintFlipped

paintFlipped() -> bool

X.paintFlipped() -> bool

Supplemental documentation: Qt 5 reference:

bool QOpenGLPaintDevice::paintFlipped() const

Returns true if painting is flipped around the Y-axis.

See also setPaintFlipped().

Source: https://doc.qt.io/archives/qt-5.15/qopenglpaintdevice.html#paintFlipped

setDevicePixelRatio

setDevicePixelRatio(devicePixelRatio: Any) -> Any

X.setDevicePixelRatio(devicePixelRatio)

Supplemental documentation: Qt 5 reference:

void QOpenGLPaintDevice::setDevicePixelRatio(qreal devicePixelRatio)

Sets the device pixel ratio for the paint device to devicePixelRatio.

Source: https://doc.qt.io/archives/qt-5.15/qopenglpaintdevice.html#setDevicePixelRatio

setDotsPerMeterX

setDotsPerMeterX(arg__1: Any) -> Any

X.setDotsPerMeterX(arg__1)

Supplemental documentation: Qt 5 reference:

void QOpenGLPaintDevice::setDotsPerMeterX(qreal dpmx)

Sets the number of pixels per meter horizontally to dpmx.

See also dotsPerMeterX().

Source: https://doc.qt.io/archives/qt-5.15/qopenglpaintdevice.html#setDotsPerMeterX

setDotsPerMeterY

setDotsPerMeterY(arg__1: Any) -> Any

X.setDotsPerMeterY(arg__1)

Supplemental documentation: Qt 5 reference:

void QOpenGLPaintDevice::setDotsPerMeterY(qreal dpmy)

Sets the number of pixels per meter vertically to dpmy.

See also dotsPerMeterY().

Source: https://doc.qt.io/archives/qt-5.15/qopenglpaintdevice.html#setDotsPerMeterY

setPaintFlipped

setPaintFlipped(arg0: flipped) -> Any

X.setPaintFlipped(flipped)

Supplemental documentation: Qt 5 reference:

void QOpenGLPaintDevice::setPaintFlipped(bool flipped)

Sets whether painting should be flipped around the Y-axis or not to flipped.

See also paintFlipped().

Source: https://doc.qt.io/archives/qt-5.15/qopenglpaintdevice.html#setPaintFlipped

setSize

setSize(size: Any) -> Any

X.setSize(size)

Supplemental documentation: Qt 5 reference:

void QOpenGLPaintDevice::setSize(const QSize \&size)

Sets the pixel size of the paint device to size.

See also size().

Source: https://doc.qt.io/archives/qt-5.15/qopenglpaintdevice.html#setSize

size

size() -> Any

X.size() -> PythonQt.QtCore.QSize

Supplemental documentation: Qt 5 reference:

QSize QOpenGLPaintDevice::size() const

Returns the pixel size of the paint device.

See also setSize().

Source: https://doc.qt.io/archives/qt-5.15/qopenglpaintdevice.html#size