Nesta página

Qt WebView Exemplos — Um exemplo básico de uma visualização web no Qt Quick

Este exemplo demonstra como usar o módulo Qt WebView com Qt Quick.

Visualização da Web exibindo o site do Qt em um dispositivo Android

O Minibrowser utiliza os controles Qt Quick e o Qt WebView para oferecer uma experiência básica de navegação. Além da barra de endereços para a URL, ele possui alguns controles para navegar pelo histórico de navegação.

Observação: Ao usar o módulo Qt WebView, é necessário chamar ` QtWebView::initialize()` imediatamente antes de criar a instância ` QGuiApplication `. Chamar ` QtWebView::initialize()` garantirá que as etapas de pré-configuração necessárias sejam executadas.

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

Executando o exemplo

Você pode executar o exemplo a partir de:

Projeto de exemplo em 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.