Qt WebView 例 - Minibrowser

Minibrowserのサンプルは、QtWebView モジュールとQt Quick の使い方を示しています。

Minibrowserは、Qt Quick コントロールとQtWebView 、基本的なブラウジング体験を提供します。URLのアドレスバーの他に、閲覧履歴をナビゲートするためのコントロールがいくつかあります。

注意: QtWebView モジュールを使用する場合、QGuiApplication インスタンスを作成する直前に、QtWebView::initialize() を呼び出す必要があります。QtWebView::initialize() を呼び出すと、必要な事前設定ステップが確実に実行されます。

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

例の実行

からサンプルを実行するには Qt Creatorから例を実行するには、Welcome モードを開き、Examples から例を選択します。詳細については、Qt Creator: チュートリアル を参照:ビルドと実行

サンプル・プロジェクト @ code.qt.io

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