\유튜브
온라인 문서를 생성할 때 HTML에 YouTube 동영상을 삽입합니다. 오프라인 문서(.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.