[Qt-interest] QImageReader::supportedImageFormats returns QList<QByteArray>
Constantin Makshin
cmakshin at gmail.com
Sun Nov 22 12:44:59 CET 2009
May be because extensions can't contain non-Latin characters and so
there's no need in wasting memory by storing them in Unicode.
On Sun, 22 Nov 2009 04:31:20 +0300, variadic.template
<variadic.template at googlemail.com> wrote:
> 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)
--
Constantin Makshin
More information about the Qt-interest-old
mailing list