Voila j'utilise QT 4.5 sur windows Xp j'ai fait une procédure ou plutot je l'ai pomper sur QtAssistant pour la tester et elle me renvoi un message d'erreur bizarre.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 void play() { Phonon::MediaObject *mediaObject = new Phonon::MediaObject(this); mediaObject->setCurrentSource(Phonon::MediaSource("C:\a.mp3")); Phonon::AudioOutput *audioOutput =new Phonon::AudioOutput(Phonon::MusicCategory,this); Phonon::Path path = Phonon::createPath(mediaObject, audioOutput); }
C:/AppliSon/mainWindow.cpp:98:
error: invalid use of `this' in non-member function
Partager