title: Phonon Qt - play sound on button click
body: <p>I need to play a sound when a button is clicked, I have this:</p>
  
  <pre><code>Phonon::MediaObject *clickObject = new Phonon::MediaObject(this);
  clickObject-&gt;setCurrentSource(Phonon::MediaSource("Click/sound.wav");
  Phonon::AudioOutput *clickOutput = new Phonon::AudioOutput(Phonon::MusicCategory, this);
  Phonon::createPath(clickObject, clickOutput);
  </code></pre>
  
  <p>and</p>
  
  <pre><code>void MainWindow::on_pushButton_clicked()
  {
     clickObject-&gt;play();
  }
  </code></pre>
  
  <p>but no sound is played?
  Where am I wrong?
  Thanks.
  EDIT: It works now, it was the wrong path.</p>