Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-26692

Obsolete functions (since Qt 4.7) are still showcased in class reference examples in Qt 5.0

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • Not Evaluated
    • 5.0.0
    • 5.0.0 Beta 1
    • Documentation, Multimedia
    • None
    • 53fdcca36650970568f14b81814eb627cbabea43

    Description

      http://qt-project.org/doc/qt-5.0/qaudioinput.html#details
      http://qt-project.org/doc/qt-5.0/qaudiooutput.html#details
      http://qt-project.org/doc/qt-5.0/qaudiodeviceinfo.html#details

      Issue
      The "Detailed Description" sections of these class references contain code such as:
      QAudioFormat format;
      format.setFrequency(8000);
      format.setChannels(1);

      QAudioFormat::setFrequency() and QAudioFormat::setChannels() have been obsolete since Qt 4.7: http://qt-project.org/doc/qt-5.0/qaudioformat-obsolete.html

      Suggestion
      Replace obsolete functions with modern, unambiguous versions to aid newcomers: QAudioFormat::setSampleRate() and QAudioFormat::setChannelCount() – Qt 5.0 is a major release, after all

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            docteam Qt Documentation Team
            jksh Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes