QWebEngineRegisterProtocolHandlerRequest Class

QWebEngineRegisterProtocolHandlerRequest 클래스를 사용하면 registerProtocolHandler API의 요청을 수락하거나 거부할 수 있습니다. 더 보기...

헤더: #include <QWebEngineRegisterProtocolHandlerRequest>
CMake: find_package(Qt6 REQUIRED COMPONENTS WebEngineCore)
target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore)
qmake: QT += webenginecore
QML에서: RegisterProtocolHandlerRequest

속성

공공 기능

void accept()
QUrl origin() const
void reject()
QString scheme() const
bool operator!=(const QWebEngineRegisterProtocolHandlerRequest &that) const
bool operator==(const QWebEngineRegisterProtocolHandlerRequest &that) const

상세 설명

QWebEnginePage::registerProtocolHandlerRequested()도 참조하세요 .

속성 문서

[read-only] origin : const QUrl

이 프로퍼티에는 프로토콜 핸들러의 URL 템플릿이 저장됩니다.

등록 프로토콜 핸들러 호출의 두 번째 매개변수입니다.

함수에 액세스합니다:

QUrl origin() const

[read-only] scheme : const QString

이 프로퍼티에는 프로토콜 핸들러의 URL 체계가 저장됩니다.

등록 프로토콜 핸들러 호출의 첫 번째 매개변수입니다.

함수에 액세스합니다:

QString scheme() const

멤버 함수 문서

[invokable] void QWebEngineRegisterProtocolHandlerRequest::accept()

요청을 수락합니다.

이후의 accept() 및 reject() 호출은 무시됩니다.

참고: 이 함수는 메타 객체 시스템과 QML을 통해 호출할 수 있습니다. Q_INVOKABLE 을 참조하세요.

[invokable] void QWebEngineRegisterProtocolHandlerRequest::reject()

요청을 거부합니다.

이후의 accept() 및 reject() 호출은 무시됩니다.

참고: 이 함수는 메타 객체 시스템과 QML을 통해 호출할 수 있습니다. Q_INVOKABLE 을 참조하세요.

bool QWebEngineRegisterProtocolHandlerRequest::operator!=(const QWebEngineRegisterProtocolHandlerRequest &that) const

that 이 요청과 다른 객체를 가리키면 true 을 반환합니다.

bool QWebEngineRegisterProtocolHandlerRequest::operator==(const QWebEngineRegisterProtocolHandlerRequest &that) const

that 이 이 요청과 동일한 객체를 가리키면 true 을 반환합니다.

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