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.
{
if(e
->type
() == QEvent::KeyPress) {
music->play();
music->seek(0);
}
return ui->textEdit->eventFilter(o, e);
}
bool MainWindow::eventFilter(QObject *o, QEvent *e)
{
if(e->type() == QEvent::KeyPress)
{
music->play();
music->seek(0);
}
return ui->textEdit->eventFilter(o, e);
}
To copy to clipboard, switch view to plain text mode
Bookmarks