En esta página

Qt WebView Ejemplos: un ejemplo básico de una vista web en Qt Quick

Este ejemplo muestra cómo utilizar el módulo Qt WebView con Qt Quick.

Vista web que muestra la página web de Qt en un dispositivo Android

Minibrowser utiliza los controles de Qt Quick y Qt WebView para ofrecer una experiencia de navegación básica. Además de la barra de direcciones para la URL, cuenta con un par de controles para navegar por el historial de navegación.

Nota: Al utilizar el módulo Qt WebView, es necesario llamar a ` QtWebView::initialize()` inmediatamente antes de crear la instancia ` QGuiApplication `. Llamar a ` QtWebView::initialize()` garantizará que se ejecuten los pasos de configuración previa necesarios.

    QtWebView::initialize();
    QGuiApplication app(argc, argv);

Ejecución del ejemplo

Puedes ejecutar el ejemplo desde:

Proyecto de ejemplo en code.qt.io

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