Hi all

I'm having problems with Phonon. I've written application which plays some sound on KeyPressed event. But after a minute or less the volume of that sound is reduced and then it completly stops, sometimes it just stops. I've never used Phonon before so I think that my code is wrong. Can you help me out with this.

Qt Code:
  1. bool MainWindow::eventFilter(QObject *o, QEvent *e)
  2. {
  3. if(e->type() == QEvent::KeyPress)
  4. {
  5. music->play();
  6. music->seek(0);
  7. }
  8. return ui->textEdit->eventFilter(o, e);
  9. }
To copy to clipboard, switch view to plain text mode