[Qt-interest] QImageReader::supportedImageFormats returns QList<QByteArray>

variadic.template variadic.template at googlemail.com
Sun Nov 22 02:31:20 CET 2009


Hi,

what's the reason for returning a list of QByteArrays
in QImageReader::supportedImageFormats? In every case,
it will return the names of supported extensions, which
will be strings. And there is no method for creating a
QStringList from a QList<QByteArray>. So, for getting a
QStringList of the supported extensions, i have to create
it by-hand. Yeah, no big thing, but seems not very
Qt-like.
Or am i blind and don't see the obviously reason for
QByteArrays?

Regards

(Anyway, Qt is great and gets even greater)



More information about the Qt-interest-old mailing list