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

QSound and QSoundEffect Objects

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 5.15.2
    • Multimedia
    • None
    • Windows 10 using QT Creator and C++17

    Description

      This works:
      QSound::play("mysounds/bells.wav");

      This does not work:
      QSound bells("mysounds/bells.wav");
      bells.play();

      Calling the static function works, but if I try to instantiate it as an object then it will not work. The same thing happens with the QSoundEffect class.

      Attachments

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

        Activity

          People

            artemiy Artem Dyomin
            chowa3 Chris Howard
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes