WebEngineDesktopMediaRequest QML Type
화면 캡처에 사용 가능한 소스로 대화 상자를 채우기 위한 요청입니다. 더 보기...
Import Statement: | import QtWebEngine |
Since: | Qt 6.7 |
In C++: | QWebEngineDesktopMediaRequest |
속성
- screensModel : ListModel
- windowsModel : ListModel
방법
- void cancel()
- void selectScreen(QModelIndex index)
- void selectWindow(QModelIndex index)
자세한 설명
웹 애플리케이션이 디스플레이의 콘텐츠를 캡처할 수 있도록 하려면 애플리케이션이 WebEngineDesktopMediaRequest 인스턴스를 인수로 받는 WebEngineView::desktopMediaRequested 에 연결해야 합니다.
웹 애플리케이션이 디스플레이 콘텐츠에 대한 액세스를 요청하는 경우, WebEngineView::desktopMediaRequested 은 캡처 가능한 창 및 화면에 대한 ListModels 에 대한 참조를 포함하는 WebEngineDesktopMediaRequest 인스턴스를 인수로 사용하여 전송됩니다.
데이터 모델의 DisplayRole은 창 제목 또는 디스플레이의 번호인 소스 이름을 지정합니다. 사용 가능한 소스 목록이 변경된 경우(예: 창이 열리거나 닫힐 때) 모델은 동적으로 업데이트됩니다.
그런 다음 신호 핸들러는 selectScreen() 또는 selectWindow()를 호출하여 요청을 수락하고 화면 공유를 시작해야 합니다.
WebEngineView::desktopMediaRequested도 참조하세요 .
속성 문서
screensModel : ListModel |
사용 가능한 화면 목록이 포함된 ListModel.
windowsModel도 참조하세요 .
windowsModel : ListModel |
사용 가능한 창 목록이 포함된 ListModel.
screensModel도 참조 하세요.
메서드 문서
void cancel() |
요청을 거부합니다. 화면 캡처가 중단됩니다.
void selectScreen(QModelIndex index) |
캡처할 index 에서 화면을 선택합니다.
WebEngineDesktopMediaRequest::selectWindow()도 참조하세요 .
void selectWindow(QModelIndex index) |
캡처할 index 창을 선택합니다.
WebEngineDesktopMediaRequest::selectScreen()도 참조하세요 .
© 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.