QWebEngineNavigationRequest Class

QWebEnginePage::navigationRequested 신호에 대한 유틸리티 유형입니다. 더 보기...

헤더: #include <QWebEngineNavigationRequest>
CMake: find_package(Qt6 REQUIRED COMPONENTS WebEngineCore)
target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore)
qmake: QT += webenginecore
이후: Qt 6.2
QML에서: WebEngineNavigationRequest
상속합니다: QObject

Properties

공공 기능

void accept()
bool hasFormData() const
bool isMainFrame() const
QWebEngineNavigationRequest::NavigationType navigationType() const
void reject()
QUrl url() const

신호

void actionChanged()

상세 설명

내비게이션 요청에 대한 정보를 포함합니다.

요청을 수락하거나 거부하려면 accept() 또는 reject()로 전화하세요.

처리되지 않는 경우 기본값은 탐색을 수락하는 것입니다.

QWebEnginePage::navigationRequested참조하세요 .

속성 문서

[read-only, since 6.8] hasFormData : const bool

이 프로퍼티는 탐색 요청에 양식 데이터가 포함되어 있는지 여부를 저장합니다.

이 프로퍼티는 Qt 6.8에 도입되었습니다.

액세스 함수:

bool hasFormData() const

[read-only] isMainFrame : const bool

이 속성은 최상위 페이지에 대한 탐색 문제를 요청할지 여부를 저장합니다.

액세스 기능:

bool isMainFrame() const

이 속성에는 웹 페이지로 이동하는 데 사용되는 메서드가 저장됩니다.

액세스 함수:

QWebEngineNavigationRequest::NavigationType navigationType() const

[read-only] url : const QUrl

이 속성에는 이동할 웹 페이지의 URL이 저장됩니다.

액세스 함수:

QUrl url() const

멤버 함수 문서

[invokable] void QWebEngineNavigationRequest::accept()

탐색 요청을 수락합니다.

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

[invokable] void QWebEngineNavigationRequest::reject()

탐색 요청을 거부합니다.

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

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