\動画
オンライン・ドキュメントを生成する場合、YouTubeビデオをHTMLに埋め込みます。オフライン・ドキュメント(.qch)を生成する場合、サムネイル画像付きのビデオへの外部リンクを追加します。HTML ドキュメントには、再生ボタン付きの動画のサムネイルが表示されます。サムネイルは、プロジェクトフォルダ内の\images\extraimages\
に保存する必要があります。
ブラウザでサムネイル画像を開くには、次のURLを使用します:https://img.youtube.com/vi/<ID>/0.jpg
.<ID>
は、YouTube 上の動画の ID です。たとえば、動画の URL がhttps://www.youtube.com/watch?v=dQw4w9WgXcQ&feature=youtu.be
の場合、ID はdQw4w9WgXcQ
です。画像ファイルをdQw4w9WgXcQ.jpg
として保存する。
サムネイルファイルのファイル名を\images\extraimages\extraimages.qdocconf
に追加する必要があります。例えば
{HTML.extraimages,qhp.qtdesignstudio.extraFiles} += \ images/dQw4w9WgXcQ.jpg
ビデオへのリンクをテキストで追加するには、次のように記述します:
\youtube dQw4w9WgXcQ
マクロも参照してください 。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.