![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Public Member Functions | |
ICOReader (QIODevice *iodevice) | |
int | count () |
QImage | iconAt (int index) |
bool | readIconEntry (int index, ICONDIRENTRY *iconEntry) |
ICOReader (QIODevice *iodevice) | |
int | count () |
QImage | iconAt (int index) |
bool | readIconEntry (int index, ICONDIRENTRY *iconEntry) |
Static Public Member Functions | |
static bool | canRead (QIODevice *iodev) |
static QList< QImage > | read (QIODevice *device) |
Reads all the icons from the given device, and returns them as a list of QImage objects. | |
static bool | write (QIODevice *device, const QList< QImage > &images) |
Writes all the QImages in the images list to the given device. | |
static bool | canRead (QIODevice *iodev) |
static QList< QImage > | read (QIODevice *device) |
static bool | write (QIODevice *device, const QList< QImage > &images) |
Definition at line 70 of file qicohandler.cpp.
ICOReader::ICOReader | ( | QIODevice * | iodevice | ) |
Definition at line 157 of file qicohandler.cpp.
References ICOReader().
Referenced by ICOReader().
ICOReader::ICOReader | ( | QIODevice * | iodevice | ) |
|
static |
Definition at line 172 of file qicohandler.cpp.
|
static |
int ICOReader::count | ( | ) |
Definition at line 165 of file qicohandler.cpp.
Referenced by iconAt(), QtIcoHandler::imageCount(), and read().
int ICOReader::count | ( | ) |
QImage ICOReader::iconAt | ( | int | index | ) |
Definition at line 427 of file qicohandler.cpp.
References count(), and readIconEntry().
QImage ICOReader::iconAt | ( | int | index | ) |
Reads all the icons from the given device, and returns them as a list of QImage objects.
Each image has an alpha channel that represents the mask from the corresponding icon.
Definition at line 539 of file qicohandler.cpp.
References count().
bool ICOReader::readIconEntry | ( | int | index, |
ICONDIRENTRY * | iconEntry ) |
Definition at line 255 of file qicohandler.cpp.
Referenced by iconAt(), and QtIcoHandler::option().
bool ICOReader::readIconEntry | ( | int | index, |
ICONDIRENTRY * | iconEntry ) |
Writes all the QImages in the images list to the given device.
Returns true
if the images are written successfully; otherwise returns false
.
The first image in the list is stored as the first icon in the device, and is therefore used as the default icon by applications. The alpha channel of each image is converted to a mask for each corresponding icon.
Definition at line 565 of file qicohandler.cpp.