PythonQt.QtGui.QImageIOHandler · declarations 002
Back to PythonQt.QtGui.QImageIOHandler
setDevice
setDevice(device: Any) -> None
X.setDevice(device)
Supplemental documentation: Qt 5 reference:
void QImageIOHandler::setDevice(QIODevice *device)
Sets the device of the QImageIOHandler to device. The image handler will use this device when reading and writing images.
The device can only be set once and must be set before calling canRead(), read(), write(), etc. If you need to read multiple files, construct multiple instances of the appropriate QImageIOHandler subclass.
See also device().
Upstream PySide2 reference signatures (binding differences may apply):
setDevice(self, device: PySide2.QtCore.QIODevice) -> None
Source: https://doc.qt.io/archives/qt-5.15/qimageiohandler.html#setDevice
setFormat
setFormat(format: Any) -> None
X.setFormat(format)
Supplemental documentation: Qt 5 reference:
void QImageIOHandler::setFormat(const QByteArray \&format)
Sets the format of the QImageIOHandler to format. The format is most useful for handlers that support multiple image formats.
See also format().
void QImageIOHandler::setFormat(const QByteArray \&format) const
Sets the format of the QImageIOHandler to format. The format is most useful for handlers that support multiple image formats.
This function is declared const so that it can be called from canRead().
See also format().
Upstream PySide2 reference signatures (binding differences may apply):
setFormat(self, format: PySide2.QtCore.QByteArray) -> None
Source: https://doc.qt.io/archives/qt-5.15/qimageiohandler.html#setFormat
setOption
setOption(option: Any, value: Any) -> None
X.setOption(option, value)
Supplemental documentation: Qt 5 reference:
[virtual] void QImageIOHandler::setOption(QImageIOHandler::ImageOption option, const QVariant \&value)
Sets the option option with the value value.
See also option() and ImageOption.
Upstream PySide2 reference signatures (binding differences may apply):
setOption(self, option: PySide2.QtGui.QImageIOHandler.ImageOption, value: typing.Any) -> None
Source: https://doc.qt.io/archives/qt-5.15/qimageiohandler.html#setOption
supportsOption
supportsOption(option: Any) -> bool
X.supportsOption(option) -> bool
Supplemental documentation: Qt 5 reference:
[virtual] bool QImageIOHandler::supportsOption(QImageIOHandler::ImageOption option) const
Returns true if the
QImageIOHandler supports the
option option; otherwise returns false. For example, if the
QImageIOHandler supports the
Size option,
supportsOption(Size) must return true.
See also setOption() and option().
Upstream PySide2 reference signatures (binding differences may apply):
supportsOption(self, option: PySide2.QtGui.QImageIOHandler.ImageOption) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qimageiohandler.html#supportsOption
write
write(image: Any) -> bool
X.write(image) -> bool
Supplemental documentation: Qt 5 reference:
[virtual] bool QImageIOHandler::write(const QImage \&image)
Writes the image image to the assigned device. Returns true on success; otherwise
returns false.
The default implementation does nothing, and simply returns false.
Upstream PySide2 reference signatures (binding differences may apply):
write(self, image: PySide2.QtGui.QImage) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qimageiohandler.html#write