Obsolete Members for QPicture

The following members of class QPicture are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

静态公有成员

(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(), and QPictureIO.

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

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

参见 outputFormats(), inputFormatList(), and 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(), and QPictureIO.

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

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

参见 inputFormats(), outputFormatList(), and 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() and save().