Hi,
This is my first try with Phonon ... so be patient

I wrote this code:
Qt Code:
  1. #include <QApplication>
  2. #include <QBoxLayout>
  3. #include <QWidget>
  4. #include <QUrl>
  5. #include <Phonon>
  6.  
  7. int main(int argc, char *argv[]){
  8. QApplication app(argc, argv);
  9. app.setApplicationName("myApp");
  10. QWidget *window = new QWidget;
  11. QWidget *video = new QWidget;
  12. Phonon::VideoPlayer *myPlayer= new Phonon::VideoPlayer(Phonon::VideoCategory, video);
  13. QVBoxLayout *layout = new QVBoxLayout;
  14. layout->addWidget(myPlayer);
  15. window->setLayout(layout);
  16. QUrl url("http://www.youtube.com/watch?v=p916yeFa2Xk");
  17. myPlayer->play(url);
  18. window->show();
  19. return app.exec();
  20. }
To copy to clipboard, switch view to plain text mode 

What's missing so that i can watch this beautiful video?

Thanks