https://wiki.qt.io/index.php?title=Embed_YouTube_Video_in_QWebView/bg&feed=atom&action=history
Embed YouTube Video in QWebView/bg - Revision history
2024-03-28T10:50:41Z
Revision history for this page on the wiki
MediaWiki 1.39.4
https://wiki.qt.io/index.php?title=Embed_YouTube_Video_in_QWebView/bg&diff=14161&oldid=prev
AutoSpider: AutoSpider moved page Embed YouTube Video in QWebView Bulgarian to Embed YouTube Video in QWebView/bg: Localisation
2015-03-16T15:59:33Z
<p>AutoSpider moved page <a href="/Embed_YouTube_Video_in_QWebView_Bulgarian" class="mw-redirect" title="Embed YouTube Video in QWebView Bulgarian">Embed YouTube Video in QWebView Bulgarian</a> to <a href="/Embed_YouTube_Video_in_QWebView/bg" title="Embed YouTube Video in QWebView/bg">Embed YouTube Video in QWebView/bg</a>: Localisation</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 15:59, 16 March 2015</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>
AutoSpider
https://wiki.qt.io/index.php?title=Embed_YouTube_Video_in_QWebView/bg&diff=11153&oldid=prev
AutoSpider: Convert ExpressionEngine links
2015-03-04T08:22:39Z
<p>Convert ExpressionEngine links</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 08:22, 4 March 2015</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l7">Line 7:</td>
<td colspan="2" class="diff-lineno">Line 7:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>= Вграждане на YouTube видео в QWebView =</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>= Вграждане на YouTube видео в QWebView =</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Този малък отрязък от код показва как се вгражда YouTube видео в <del style="font-weight: bold; text-decoration: none;">"QWebView":</del>http://doc.qt.io/qt-5.0/qtwebkit/qwebview.html. Също така демонстрира Qt поддръжка на flash. Първо създайте Qt Gui Application чрез Qt Creator и добавете QWebView към него.</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Този малък отрязък от код показва как се вгражда YouTube видео в <ins style="font-weight: bold; text-decoration: none;">[</ins>http://doc.qt.io/qt-5.0/qtwebkit/qwebview.html <ins style="font-weight: bold; text-decoration: none;">QWebView]</ins>. Също така демонстрира Qt поддръжка на flash. Първо създайте Qt Gui Application чрез Qt Creator и добавете QWebView към него.</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>След това добавете поддръжка на network и webkit във Вашия .pro файл:</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>След това добавете поддръжка на network и webkit във Вашия .pro файл:</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l31">Line 31:</td>
<td colspan="2" class="diff-lineno">Line 31:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Също така можете да вградите самото видео в локална HTML страница и да посочите пътя до този файл.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Също така можете да вградите самото видео в локална HTML страница и да посочите пътя до този файл.</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Повече детайли как се използва flash в Qt могат да бъдат намерени <del style="font-weight: bold; text-decoration: none;">"тук":</del>http://blog.forwardbias.in/2009/12/flash-in-qgraphicsview.html</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Повече детайли как се използва flash в Qt могат да бъдат намерени <ins style="font-weight: bold; text-decoration: none;">[</ins>http://blog.forwardbias.in/2009/12/flash-in-qgraphicsview.html <ins style="font-weight: bold; text-decoration: none;">тук]</ins></div></td></tr>
</table>
AutoSpider
https://wiki.qt.io/index.php?title=Embed_YouTube_Video_in_QWebView/bg&diff=9256&oldid=prev
AutoSpider: Add "cleanup" tag
2015-03-03T15:37:04Z
<p>Add "cleanup" tag</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 15:37, 3 March 2015</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">{{Cleanup | reason=Auto-imported from ExpressionEngine.}}</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>'''Български''' | [[Embed_YouTube_Video_in_QWebView|English]] | [[Embed_YouTube_Video_in_QWebView_German|Deutsch]] | [[Embed_YouTube_Video_in_QWebView_Spanish|Español]] | [[Embed_YouTube_Video_in_QWebView_Japanese|日本語]] | [[Embed_YouTube_Video_in_QWebView_Portuguese|Português]] |</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>'''Български''' | [[Embed_YouTube_Video_in_QWebView|English]] | [[Embed_YouTube_Video_in_QWebView_German|Deutsch]] | [[Embed_YouTube_Video_in_QWebView_Spanish|Español]] | [[Embed_YouTube_Video_in_QWebView_Japanese|日本語]] | [[Embed_YouTube_Video_in_QWebView_Portuguese|Português]] |</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
</table>
AutoSpider
https://wiki.qt.io/index.php?title=Embed_YouTube_Video_in_QWebView/bg&diff=7879&oldid=prev
Maintenance script at 12:50, 25 February 2015
2015-02-25T12:50:23Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 12:50, 25 February 2015</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l5">Line 5:</td>
<td colspan="2" class="diff-lineno">Line 5:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>= Вграждане на YouTube видео в QWebView =</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>= Вграждане на YouTube видео в QWebView =</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Този малък отрязък от код показва как се вгражда YouTube видео в <del style="font-weight: bold; text-decoration: none;">&quot;</del>QWebView<del style="font-weight: bold; text-decoration: none;">&amp;quot;</del>:http://doc.qt.io/qt-5.0/qtwebkit/qwebview.html. Също така демонстрира Qt поддръжка на flash. Първо създайте Qt Gui Application чрез Qt Creator и добавете QWebView към него.</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Този малък отрязък от код показва как се вгражда YouTube видео в <ins style="font-weight: bold; text-decoration: none;">"</ins>QWebView<ins style="font-weight: bold; text-decoration: none;">"</ins>:http://doc.qt.io/qt-5.0/qtwebkit/qwebview.html. Също така демонстрира Qt поддръжка на flash. Първо създайте Qt Gui Application чрез Qt Creator и добавете QWebView към него.</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>След това добавете поддръжка на network и webkit във Вашия .pro файл:<del style="font-weight: bold; text-decoration: none;"><br /></del><code><del style="font-weight: bold; text-decoration: none;"><br /></del>QT += core gui network webkit<del style="font-weight: bold; text-decoration: none;"><br /></del></code></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>След това добавете поддръжка на network и webkit във Вашия .pro файл:</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><code></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>QT += core gui network webkit</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></code></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>В your mainwindow.cpp добавете<del style="font-weight: bold; text-decoration: none;"><br /></del><code><del style="font-weight: bold; text-decoration: none;"><br /></del>MainWindow::MainWindow(QWidget *parent) :<del style="font-weight: bold; text-decoration: none;"><br /> </del>QMainWindow(parent),<del style="font-weight: bold; text-decoration: none;"><br /> </del>ui(new Ui::MainWindow)<del style="font-weight: bold; text-decoration: none;"><br /></del>{<del style="font-weight: bold; text-decoration: none;"><br /> </del>ui-<del style="font-weight: bold; text-decoration: none;">&gt;</del>setupUi(this);<del style="font-weight: bold; text-decoration: none;"><br /> </del>QNetworkProxyFactory::setUseSystemConfiguration (true);<del style="font-weight: bold; text-decoration: none;"><br /> </del>QWebSettings::globalSettings()<del style="font-weight: bold; text-decoration: none;"><s</del>><del style="font-weight: bold; text-decoration: none;">&gt;</del>setAttribute(QWebSettings::PluginsEnabled, true);<del style="font-weight: bold; text-decoration: none;"><br /> </del>QWebSettings::globalSettings()<del style="font-weight: bold; text-decoration: none;"></s</del>><del style="font-weight: bold; text-decoration: none;">&gt;</del>setAttribute(QWebSettings::AutoLoadImages, true);<del style="font-weight: bold; text-decoration: none;"><br /> </del>ui-<del style="font-weight: bold; text-decoration: none;">&gt;</del>webView-<del style="font-weight: bold; text-decoration: none;">&gt;</del>load(QUrl(<del style="font-weight: bold; text-decoration: none;">&quot;</del>http://www.youtube.com/watch?v=3aR27FLbb04<del style="font-weight: bold; text-decoration: none;">&amp;quot;</del>));<del style="font-weight: bold; text-decoration: none;"><br /></del>}<del style="font-weight: bold; text-decoration: none;"><br /></del></code></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>В your mainwindow.cpp добавете</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><code></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>MainWindow::MainWindow(QWidget *parent) :</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> </ins>QMainWindow(parent),</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> </ins>ui(new Ui::MainWindow)</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>{</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> </ins>ui-<ins style="font-weight: bold; text-decoration: none;">></ins>setupUi(this);</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> </ins>QNetworkProxyFactory::setUseSystemConfiguration (true);</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> </ins>QWebSettings::globalSettings()<ins style="font-weight: bold; text-decoration: none;">-</ins>>setAttribute(QWebSettings::PluginsEnabled, true);</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> </ins>QWebSettings::globalSettings()<ins style="font-weight: bold; text-decoration: none;">-</ins>>setAttribute(QWebSettings::AutoLoadImages, true);</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> </ins>ui-<ins style="font-weight: bold; text-decoration: none;">></ins>webView-<ins style="font-weight: bold; text-decoration: none;">></ins>load(QUrl(<ins style="font-weight: bold; text-decoration: none;">"</ins>http://www.youtube.com/watch?v=3aR27FLbb04<ins style="font-weight: bold; text-decoration: none;">"</ins>));</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>}</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></code></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Трябва да можете да заредите web страницата с вграденото видео в нея.<del style="font-weight: bold; text-decoration: none;"><br /></del>Също така можете да вградите самото видео в локална HTML страница и да посочите пътя до този файл.</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Трябва да можете да заредите web страницата с вграденото видео в нея.</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Също така можете да вградите самото видео в локална HTML страница и да посочите пътя до този файл.</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Повече детайли как се използва flash в Qt могат да бъдат намерени <del style="font-weight: bold; text-decoration: none;">&quot;</del>тук<del style="font-weight: bold; text-decoration: none;">&amp;quot;</del>:http://blog.forwardbias.in/2009/12/flash-in-qgraphicsview.html</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Повече детайли как се използва flash в Qt могат да бъдат намерени <ins style="font-weight: bold; text-decoration: none;">"</ins>тук<ins style="font-weight: bold; text-decoration: none;">"</ins>:http://blog.forwardbias.in/2009/12/flash-in-qgraphicsview.html</div></td></tr>
</table>
Maintenance script
https://wiki.qt.io/index.php?title=Embed_YouTube_Video_in_QWebView/bg&diff=3500&oldid=prev
Maintenance script at 07:02, 24 February 2015
2015-02-24T07:02:05Z
<p></p>
<p><b>New page</b></p><div>'''Български''' | [[Embed_YouTube_Video_in_QWebView|English]] | [[Embed_YouTube_Video_in_QWebView_German|Deutsch]] | [[Embed_YouTube_Video_in_QWebView_Spanish|Español]] | [[Embed_YouTube_Video_in_QWebView_Japanese|日本語]] | [[Embed_YouTube_Video_in_QWebView_Portuguese|Português]] |<br />
<br />
[[Category:snippets]]<br />
<br />
= Вграждане на YouTube видео в QWebView =<br />
<br />
Този малък отрязък от код показва как се вгражда YouTube видео в &quot;QWebView&amp;quot;:http://doc.qt.io/qt-5.0/qtwebkit/qwebview.html. Също така демонстрира Qt поддръжка на flash. Първо създайте Qt Gui Application чрез Qt Creator и добавете QWebView към него.<br />
<br />
След това добавете поддръжка на network и webkit във Вашия .pro файл:<br /><code><br />QT += core gui network webkit<br /></code><br />
<br />
В your mainwindow.cpp добавете<br /><code><br />MainWindow::MainWindow(QWidget *parent) :<br /> QMainWindow(parent),<br /> ui(new Ui::MainWindow)<br />{<br /> ui-&gt;setupUi(this);<br /> QNetworkProxyFactory::setUseSystemConfiguration (true);<br /> QWebSettings::globalSettings()<s>&gt;setAttribute(QWebSettings::PluginsEnabled, true);<br /> QWebSettings::globalSettings()</s>&gt;setAttribute(QWebSettings::AutoLoadImages, true);<br /> ui-&gt;webView-&gt;load(QUrl(&quot;http://www.youtube.com/watch?v=3aR27FLbb04&amp;quot;));<br />}<br /></code><br />
<br />
Трябва да можете да заредите web страницата с вграденото видео в нея.<br />Също така можете да вградите самото видео в локална HTML страница и да посочите пътя до този файл.<br />
<br />
Повече детайли как се използва flash в Qt могат да бъдат намерени &quot;тук&amp;quot;:http://blog.forwardbias.in/2009/12/flash-in-qgraphicsview.html</div>
Maintenance script