A utility type for the QWebEnginePage::navigationRequested 信號。 更多...
| 頭: |
#include <QWebEngineNavigationRequest>
|
| CMake: |
find_package(Qt6 REQUIRED COMPONENTS WebEngineCore)
target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore)
|
| qmake: |
QT += webenginecore
|
| Since: | Qt 6.2 |
| 在 QML: | WebEngineNavigationRequest |
| 繼承: | QObject |
(從 6.8 起)
hasFormData
: const bool
| void | accept () |
| bool | hasFormData () const |
| bool | isMainFrame () const |
| QWebEngineNavigationRequest::NavigationType | navigationType () const |
| void | reject () |
| QUrl | url () const |
| void | actionChanged () |
Contains information about a navigation request.
To accept or reject a request, call accept () 或 reject ().
The default if not handled is to accept the navigation.
另請參閱 QWebEnginePage::navigationRequested .
[read-only, since 6.8]
hasFormData
: const
bool
This property holds whether the navigation request contains form data
該特性在 Qt 6.8 引入。
訪問函數:
| bool | hasFormData () const |
[read-only]
isMainFrame
: const
bool
This property holds whether the navigation issue is requested for a top level page.
訪問函數:
| bool | isMainFrame () const |
[read-only]
navigationType
: const
NavigationType
This property holds the method used to navigate to a web page.
訪問函數:
| QWebEngineNavigationRequest::NavigationType | navigationType () const |
[read-only]
url
: const
QUrl
This property holds the URL of the web page to go to.
訪問函數:
| QUrl | url () const |
[invokable]
void
QWebEngineNavigationRequest::
accept
()
Accepts a navigation request.
注意: 此函數可以被援引,通過元對象係統和從 QML。見 Q_INVOKABLE .
[invokable]
void
QWebEngineNavigationRequest::
reject
()
Rejects a navigation request.
注意: 此函數可以被援引,通過元對象係統和從 QML。見 Q_INVOKABLE .