Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

QByteArray QPictureIO::pictureFormat ( const QString fileName ) [static]

Returns a string that specifies the picture format of the file fileName, or null if the file cannot be read or if the format is not recognized.

Definition at line 1734 of file qpicture.cpp.

References QFile::close(), format(), and QFile::open().

Referenced by read().

{
    QFile file(fileName);
    QByteArray format;
    if (!file.open(QIODevice::ReadOnly))
        return format;
    format = pictureFormat(&file);
    file.close();
    return format;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index