View Full Version : QWebView won't play YouTube videos?

10th July 2014, 12:02
I tried both Qt 5.3.1 mingw and PyQt 5.3.1 and couldn't get any videos to play in a QWebView browser? Any ideas why won't QWebView play Youtube html5 videos?

All examples show that these lines should be sufficient:

QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled, true);
ui->webView->settings()->setAttribute(QWebSettings::PluginsEnabled, true);

10th July 2014, 12:26
I don't think you need plugins for HTML5's video tag, that would be for using Flash.

Have you tried with a local video?