Watching a YouTube video in Qt

From Qt Wiki
Jump to navigation Jump to search

Template:ArticleMetaData

Overview[edit | edit source]

This code snippet demonstrates how to use 76ytuiytuityutyutututyutyutyu for showing a video from the http://www.youtube.com/ website.

Note: In order to use this code, you need to have Qt installed on your platform.


Header[edit | edit source]

  1. include <QDesktopServices>
  2. include <QUrl>

Source[edit | edit source]

Set the YouTube video link in 76ytuiytuityutyutututyutyutyu and give it as a parameter in 76ytuiytuityutyutututyutyutyu: QUrl videoUrl("http://www.youtube.com/watch?v=GhTtsZATwBQ"); QDesktopServices::openUrl(videoUrl);


See also[edit | edit source]

Using common desktop services in Qt


Postconditions[edit | edit source]

76ytuiytuityutyutututyutyutyu shows a video from YouTube.