PythonQt.QtGui.QImageIOPlugin · declarations 001
Back to PythonQt.QtGui.QImageIOPlugin
CanRead
instance-attribute
CanRead: Any
CanReadIncremental
instance-attribute
CanReadIncremental: Any
CanWrite
instance-attribute
CanWrite: Any
Capabilities
instance-attribute
Capabilities: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
Capability
instance-attribute
Capability: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
capabilities
capabilities(device: Any, format: Any) -> Any
X.capabilities(device, format)
Supplemental documentation: Qt 5 reference:
[pure virtual] QImageIOPlugin::Capabilities QImageIOPlugin::capabilities(QIODevice *device, const QByteArray \&format) const
Returns the capabilities of the plugin, based on the data in device and the format
format. If device is 0, it should simply report whether the format can be read or
written. Otherwise, it should attempt to determine whether the given format (or any
format supported by the plugin if format is empty) can be read from or written to
device. It should do this without changing the state of device (typically by using
QIODevice::peek()).
For example, if the
QImageIOPlugin supports the
BMP format, format is either empty or "bmp", and the data in the device starts with
the characters "BM", this function should return
CanRead. If
format is "bmp", device is 0 and the handler supports both reading and writing,
this function should return
CanRead |
CanWrite.
Format names are always given in lower case.
Source: https://doc.qt.io/archives/qt-5.15/qimageioplugin.html#capabilities
create
create(device: Any, format: Any) -> Any
X.create(device, format) -> PythonQt.QtGui.QImageIOHandler
Supplemental documentation: Qt 5 reference:
[pure virtual] QImageIOHandler *QImageIOPlugin::create(QIODevice *device, const QByteArray \&format \= QByteArray()) const
Creates and returns a
QImageIOHandler subclass,
with device and format set. The format must come from the values listed in the
"Keys" entry in the plugin metadata, or be empty. If it is empty, the data in device
must have been recognized by the
capabilities()
method (with a likewise empty format).
Format names are always given in lower case.
Source: https://doc.qt.io/archives/qt-5.15/qimageioplugin.html#create
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QImageIOPlugin.destroyed; argument details are not documented.
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QImageIOPlugin.objectNameChanged; argument details are not documented.