Obsolete Members for QPicture

以下成员源于类 QPicture 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

静态公共成员

(obsolete) QStringList inputFormatList ()
(obsolete) QList<QByteArray> inputFormats ()
(obsolete) QStringList outputFormatList ()
(obsolete) QList<QByteArray> outputFormats ()
(obsolete) const char * pictureFormat (const QString & fileName )

成员函数文档编制

[static] QStringList QPicture:: inputFormatList ()

Returns a list of picture formats that are supported for picture input.

Note that if you want to iterate over the list, you should iterate over a copy, e.g.

        QStringList list = QPicture::inputFormatList();
        foreach (const QString &string, list)
            myProcessing(string);
					

另请参阅 outputFormatList (), inputFormats (),和 QPictureIO .

[static] QList < QByteArray > QPicture:: inputFormats ()

Returns a list of picture formats that are supported for picture input.

另请参阅 outputFormats (), inputFormatList (),和 QPictureIO .

[static] QStringList QPicture:: outputFormatList ()

Returns a list of picture formats that are supported for picture output.

Note that if you want to iterate over the list, you should iterate over a copy, e.g.

        QStringList list = QPicture::outputFormatList();
        foreach (const QString &string, list)
            myProcessing(string);
					

另请参阅 inputFormatList (), outputFormats (),和 QPictureIO .

[static] QList < QByteArray > QPicture:: outputFormats ()

Returns a list of picture formats that are supported for picture output.

另请参阅 inputFormats (), outputFormatList (),和 QPictureIO .

[static] const char *QPicture:: pictureFormat (const QString & fileName )

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

另请参阅 load () 和 save ().