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

QSound and QSoundEffect Objects

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes