\youtube

온라인 문서를 생성할 때, 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

‘매크로’항목도 참조하십시오 .

© 2026 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.