PDA

View Full Version : two questions : phonon volume slider and displaying song tiltle



qtnewbie12
10th August 2012, 09:56
Hello,

I am creating a music player in Qt using phonon but I have a problem with the volume slider. I wrote this code but volume slider doesn't work , I mean its not turning the volume up or down or mute it .


Phonon::VolumeSlider * volume = new Phonon::VolumeSlider(this);
Phonon::AudioOutput * audio = new Phonon::AudioOutput (Phonon::MusicCategory,this);
volume->setAudioOutput(audio);

the second thing is I created a label and I want the song title to appear on that label but I don't know how to write the code for it.
Can someone help me ?

Thanks in advance

qtnewbie12
12th August 2012, 04:07
no one can help me ?