Watching a YouTube video in Qt
Jump to navigation
Jump to search
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]
- include <QDesktopServices>
- 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.