Skip to content

PythonQt.QtSvg.QSvgGenerator · declarations 001

Back to PythonQt.QtSvg.QSvgGenerator

description

description() -> str

X.description() -> str

Supplemental documentation: Qt 5 reference:

description : QString

This property holds the description of the generated SVG drawing

This property was introduced in Qt 4.5.

Access functions:

QString description() const
void setDescription(const QString \&description)

See also title.

Upstream PySide2 reference signatures (binding differences may apply):

description(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qsvggenerator.html#description

fileName

fileName() -> str

X.fileName() -> str

Supplemental documentation: Qt 5 reference:

fileName : QString

This property holds the target filename for the generated SVG drawing

This property was introduced in Qt 4.5.

Access functions:

QString fileName() const
void setFileName(const QString \&fileName)

See also outputDevice.

Upstream PySide2 reference signatures (binding differences may apply):

fileName(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qsvggenerator.html#fileName

metric

metric(metric: Any) -> int

X.metric(metric) -> int

Supplemental documentation: Qt 5 reference:

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

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

Upstream PySide2 reference signatures (binding differences may apply):

metric(self, metric: PySide2.QtGui.QPaintDevice.PaintDeviceMetric) -> int

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

outputDevice

outputDevice() -> Any

X.outputDevice() -> PythonQt.QtCore.QIODevice

Supplemental documentation: Qt 5 reference:

outputDevice : QIODevice*

This property holds the output device for the generated SVG drawing

If both output device and file name are specified, the output device will have precedence.

This property was introduced in Qt 4.5.

Access functions:

QIODevice * outputDevice() const
void setOutputDevice(QIODevice *outputDevice)

See also fileName.

Upstream PySide2 reference signatures (binding differences may apply):

outputDevice(self) -> PySide2.QtCore.QIODevice

Source: https://doc.qt.io/archives/qt-5.15/qsvggenerator.html#outputDevice

paintEngine

paintEngine() -> Any

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

Supplemental documentation: Qt 5 reference:

[override virtual protected] QPaintEngine *QSvgGenerator::paintEngine() const

Reimplements: QPaintDevice::paintEngine() const.

Returns the paint engine used to render graphics to be converted to SVG format information.

Upstream PySide2 reference signatures (binding differences may apply):

paintEngine(self) -> PySide2.QtGui.QPaintEngine

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

resolution

resolution() -> int

X.resolution() -> int

Supplemental documentation: Qt 5 reference:

resolution : int

This property holds the resolution of the generated output

The resolution is specified in dots per inch, and is used to calculate the physical size of an SVG drawing.

This property was introduced in Qt 4.5.

Access functions:

int resolution() const
void setResolution(int dpi)

See also size and viewBox.

Upstream PySide2 reference signatures (binding differences may apply):

resolution(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qsvggenerator.html#resolution

setDescription

setDescription(description: str) -> None

X.setDescription(description)

Upstream PySide2 reference signatures (binding differences may apply):

setDescription(self, description: str) -> None

Source: https://doc.qt.io/archives/qt-5.15/qsvggenerator.html#setDescription

setFileName

setFileName(fileName: str) -> None

X.setFileName(fileName)

Upstream PySide2 reference signatures (binding differences may apply):

setFileName(self, fileName: str) -> None

Source: https://doc.qt.io/archives/qt-5.15/qsvggenerator.html#setFileName

setOutputDevice

setOutputDevice(outputDevice: Any) -> None

X.setOutputDevice(outputDevice)

Upstream PySide2 reference signatures (binding differences may apply):

setOutputDevice(self, outputDevice: PySide2.QtCore.QIODevice) -> None

Source: https://doc.qt.io/archives/qt-5.15/qsvggenerator.html#setOutputDevice

setResolution

setResolution(dpi: int) -> None

X.setResolution(dpi)

Upstream PySide2 reference signatures (binding differences may apply):

setResolution(self, dpi: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qsvggenerator.html#setResolution

setSize

setSize(size: Any) -> None

X.setSize(size)

Upstream PySide2 reference signatures (binding differences may apply):

setSize(self, size: PySide2.QtCore.QSize) -> None

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

setTitle

setTitle(title: str) -> None

X.setTitle(title)

Upstream PySide2 reference signatures (binding differences may apply):

setTitle(self, title: str) -> None

Source: https://doc.qt.io/archives/qt-5.15/qsvggenerator.html#setTitle

setViewBox

setViewBox(viewBox: Any) -> None

X.setViewBox(viewBox)

Upstream PySide2 reference signatures (binding differences may apply):

setViewBox(self, viewBox: PySide2.QtCore.QRect) -> None
setViewBox(self, viewBox: PySide2.QtCore.QRectF) -> None

Source: https://doc.qt.io/archives/qt-5.15/qsvggenerator.html#setViewBox

size

size() -> Any

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

Supplemental documentation: Qt 5 reference:

size : QSize

This property holds the size of the generated SVG drawing

By default this property is set to QSize(-1, -1), which indicates that the generator should not output the width and height attributes of the <svg> element.

Note: It is not possible to change this property while a QPainter is active on the generator.

This property was introduced in Qt 4.5.

Access functions:

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

See also viewBox and resolution.

Upstream PySide2 reference signatures (binding differences may apply):

size(self) -> PySide2.QtCore.QSize

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

title

title() -> str

X.title() -> str

Supplemental documentation: Qt 5 reference:

title : QString

This property holds the title of the generated SVG drawing

This property was introduced in Qt 4.5.

Access functions:

QString title() const
void setTitle(const QString \&title)

See also description.

Upstream PySide2 reference signatures (binding differences may apply):

title(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qsvggenerator.html#title

viewBox

viewBox() -> Any

X.viewBox() -> PythonQt.QtCore.QRect

Supplemental documentation: Qt 5 reference:

viewBox : QRectF

This property holds the viewBox of the generated SVG drawing

By default this property is set to QRect(0, 0, -1, -1), which indicates that the generator should not output the viewBox attribute of the <svg> element.

Note: It is not possible to change this property while a QPainter is active on the generator.

This property was introduced in Qt 4.5.

Access functions:

QRectF viewBoxF() const
void setViewBox(const QRect \&viewBox)
void setViewBox(const QRectF \&viewBox)

See also viewBox(), size, and resolution.

QRect QSvgGenerator::viewBox() const

Returns viewBoxF().toRect().

This function was introduced in Qt 4.5.

See also setViewBox() and viewBoxF().

Upstream PySide2 reference signatures (binding differences may apply):

viewBox(self) -> PySide2.QtCore.QRect

Source: https://doc.qt.io/archives/qt-5.15/qsvggenerator.html#viewBox

viewBoxF

viewBoxF() -> Any

X.viewBoxF() -> PythonQt.QtCore.QRectF

Upstream PySide2 reference signatures (binding differences may apply):

viewBoxF(self) -> PySide2.QtCore.QRectF

Source: https://doc.qt.io/archives/qt-5.15/qsvggenerator.html#viewBoxF