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.

Static Public Members

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

Member Function Documentation

[static] QStringList QPicture::inputFormatList()

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

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.

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

See also outputFormatList(), inputFormats(), and QPictureIO.

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

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

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

See also outputFormats(), inputFormatList(), and QPictureIO.

[static] QStringList QPicture::outputFormatList()

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

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.

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

See also inputFormatList(), outputFormats(), and QPictureIO.

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

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

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

See also inputFormats(), outputFormatList(), and QPictureIO.

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

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

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

See also load() and save().

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.