Skip to content

PythonQt.QtGui.QPicture · declarations 001

Back to PythonQt.QtGui.QPicture

boundingRect

boundingRect() -> Any

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

Supplemental documentation: Qt 5 reference:

QRect QPicture::boundingRect() const

Returns the picture's bounding rectangle or an invalid rectangle if the picture contains no data.

See also setBoundingRect().

Upstream PySide2 reference signatures (binding differences may apply):

boundingRect(self) -> PySide2.QtCore.QRect

Source: https://doc.qt.io/archives/qt-5.15/qpicture.html#boundingRect

data

data() -> str

X.data() -> int

Supplemental documentation: Qt 5 reference:

const char *QPicture::data() const

Returns a pointer to the picture data. The pointer is only valid until the next non-const function is called on this picture. The returned pointer is 0 if the picture contains no data.

See also setData(), size(), and isNull().

Upstream PySide2 reference signatures (binding differences may apply):

data(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qpicture.html#data

devType

devType() -> int

X.devType() -> int

Upstream PySide2 reference signatures (binding differences may apply):

devType(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qpicture.html#devType

isNull

isNull() -> bool

X.isNull() -> bool

Supplemental documentation: Qt 5 reference:

bool QPicture::isNull() const

Returns true if the picture contains no data; otherwise returns false.

Upstream PySide2 reference signatures (binding differences may apply):

isNull(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qpicture.html#isNull

load

load(dev: Any, format: Any) -> bool

X.load(dev, format) -> bool

Supplemental documentation: Qt 5 reference:

bool QPicture::load(const QString \&fileName, const char *format \= nullptr)

Loads a picture from the file specified by fileName and returns true if successful; otherwise invalidates the picture and returns false.

Please note that the format parameter has been deprecated and will have no effect.

See also save().

bool QPicture::load(QIODevice *dev, const char *format \= nullptr)

This is an overloaded function.

dev is the device to use for loading.

Upstream PySide2 reference signatures (binding differences may apply):

load(self, dev: PySide2.QtCore.QIODevice, format: typing.Optional[str]=...) -> bool
load(self, fileName: str, format: typing.Optional[str]=...) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qpicture.html#load

metric

metric(m: Any) -> int

X.metric(m) -> int

Upstream PySide2 reference signatures (binding differences may apply):

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

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

paintEngine

paintEngine() -> Any

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

Upstream PySide2 reference signatures (binding differences may apply):

paintEngine(self) -> PySide2.QtGui.QPaintEngine

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

play

play(p: Any) -> bool

X.play(p) -> bool

Supplemental documentation: Qt 5 reference:

bool QPicture::play(QPainter *painter)

Replays the picture using painter, and returns true if successful; otherwise returns false.

This function does exactly the same as QPainter::drawPicture() with (x, y) \= (0, 0).

Upstream PySide2 reference signatures (binding differences may apply):

play(self, p: PySide2.QtGui.QPainter) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qpicture.html#play

save

save(dev: Any, format: Any) -> bool

X.save(dev, format) -> bool

Supplemental documentation: Qt 5 reference:

bool QPicture::save(const QString \&fileName, const char *format \= nullptr)

Saves a picture to the file specified by fileName and returns true if successful; otherwise returns false.

Please note that the format parameter has been deprecated and will have no effect.

See also load().

bool QPicture::save(QIODevice *dev, const char *format \= nullptr)

This is an overloaded function.

dev is the device to use for saving.

Upstream PySide2 reference signatures (binding differences may apply):

save(self, dev: PySide2.QtCore.QIODevice, format: typing.Optional[str]=...) -> bool
save(self, fileName: str, format: typing.Optional[str]=...) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qpicture.html#save

setBoundingRect

setBoundingRect(r: Any) -> None

X.setBoundingRect(r)

Supplemental documentation: Qt 5 reference:

void QPicture::setBoundingRect(const QRect \&r)

Sets the picture's bounding rectangle to r. The automatically calculated value is overridden.

See also boundingRect().

Upstream PySide2 reference signatures (binding differences may apply):

setBoundingRect(self, r: PySide2.QtCore.QRect) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpicture.html#setBoundingRect

size

size() -> int

X.size() -> int

Supplemental documentation: Qt 5 reference:

uint QPicture::size() const

Returns the size of the picture data.

See also data().

Upstream PySide2 reference signatures (binding differences may apply):

size(self) -> int

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

swap

swap(other: Any) -> None

X.swap(other)

Supplemental documentation: Qt 5 reference:

void QPicture::swap(QPicture \&other)

Swaps picture other with this picture. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

Upstream PySide2 reference signatures (binding differences may apply):

swap(self, other: PySide2.QtGui.QPicture) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpicture.html#swap