WebEngine QML Type

모든 웹 엔진 보기에서 공유되는 기본 설정 및 프로필에 액세스할 수 있습니다. 자세히...

Import Statement: import QtWebEngine
Since: QtWebEngine 1.1

속성

  • defaultProfile : WebEngineProfile (since QtWebEngine 1.1)
  • settings : WebEngineSettings (since QtWebEngine 1.1)

방법

  • WebEngineScript script() (since QtWebEngine 6.2)

자세한 설명

WebEngine 싱글톤 유형은 모든 웹 엔진 보기에서 공유하는 기본 프로필 및 기본 설정에 대한 액세스를 제공합니다. 다음 코드 스니펫에 설명된 대로 설정을 전역적으로 변경하는 데 사용할 수 있습니다:

Component.onCompleted: {
    WebEngine.settings.pluginsEnabled = true;
}

속성 문서

defaultProfile : WebEngineProfile [read-only, since QtWebEngine 1.1]

모든 웹 엔진 보기의 기본 프로필.

이 프로퍼티는 QtWebEngine 1.1에 도입되었습니다.

WebEngineProfile참조하십시오 .


settings : WebEngineSettings [read-only, since QtWebEngine 1.1]

모든 웹 엔진 보기에 대한 기본 설정.

이 프로퍼티는 QtWebEngine 1.1에 도입되었습니다.

WebEngineSettings도 참조하십시오 .


메서드 문서

[since QtWebEngine 6.2] WebEngineScript script()

WebEngineScriptCollection 을 사용하여 WebEngineView.userScripts 또는 WebEngineProfile.userScripts 에 대한 사용자 스크립트 컬렉션을 설정하고 삽입할 수 있는 WebEngineScript 을 생성합니다.

이 메서드는 QtWebEngine 6.2에 도입되었습니다.

WebEngineScriptWebEngineScriptCollection도 참조하십시오 .


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