I have having issues using a volumeSlider with Phonon.

My code plays an audio file. This works.

When I press the play button, the audio plays. If I increase the volume it works.
When I press pause the output is paused. Pressing pause again resumes the audio and the volume remains unaffected.

When I press stop and play the volume is reset and the volumeSlider does not show the correct volume. How can I get the volume to not reset?

public:
Phonon::MediaObject *mediaObject;
Phonon::AudioOutput *audioOutput;
Phonon::VolumeSlider *volumeSlider;


Main:
audioOutput = new Phonon::AudioOutput(Phonon::MusicCategory, this);
mediaObject = new Phonon::MediaObject(this);
Phonon::createPath(mediaObject,audioOutput);
volumeSlider = new Phonon::VolumeSlider(this);
volumeSlider->setAudioOutput(audioOutput);
audioOutput->setVolume(0.75);
volumeSlider->setGeometry(65,540,200,40);
volumeSlider->setFixedWidth(200);
volumeSlider->setIconSize(QSize(25,25));

connect(this->ui->playButton, SIGNAL(clicked()), this, SLOT(playMyAudio()));
connect(this->ui->pauseButton, SIGNAL(clicked()), this, SLOT(pauseMyAudio()));
connect(this->ui->stopButton, SIGNAL(clicked()), this, SLOT(stopMyAudio()));



void MainWindow:layMyAudio()
{
QString privatePathQt(QDir::homePath());
QString privatePathSymbian(privatePathQt.replace("/","\\"));
mediaObject->setCurrentSource(Phonon::MediaSource(privatePathS ymbian + "\\pPlayer\\audio.wma"));
mediaObject->play();
}