IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QWebEngineNavigationRequest Class

A utility type for the QWebEnginePage::navigationRequested signal.

This class was introduced in Qt 6.2.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QWebEngineNavigationRequest Class

  • Header: QWebEngineNavigationRequest

  • Since: Qt 6.2

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS WebEngineCore)

    target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore)

  • qmake: QT += webenginecore

  • Inherited By:

  • Instantiated By: qml-qtwebengine-webenginenavigationrequest.xml

  • Inherits: QObject

Detailed Description

Contains information about a navigation request.

To accept or reject a request, call accept() or reject().

The default if not handled is to accept the navigation.

See Also

Property Documentation

 

[read-only] isMainFrame : const bool

This property holds whether the navigation issue is requested for a top level page.

Access functions:

  • bool isMainFrame() const

[read-only] navigationType : const NavigationType

Access functions:

  • QWebEngineNavigationRequest::NavigationType navigationType() const

[read-only] url : const QUrl

This property holds the URL of the web page to go to.

Access functions:

  • url() const

Member Function Documentation

 

void QWebEngineNavigationRequest::accept()

Accepts a navigation request.

void QWebEngineNavigationRequest::reject()

Rejects a navigation request.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+