Qt WebView 例 - Minibrowser
Minibrowserのサンプルは、QtWebView モジュールとQt Quick の使い方を示しています。
Minibrowserは、Qt Quick Controls と QtWebView を使用して、基本的なブラウジング体験を提供します。URLのアドレスバーの他に、閲覧履歴をナビゲートするためのコントロールがいくつかあります。
注意: QtWebView モジュールを使用する場合、QGuiApplication インスタンスを作成する直前に、QtWebView::initialize() を呼び出す必要があります。QtWebView::initialize() を呼び出すと、必要な事前設定ステップが確実に実行されます。
QtWebView::initialize(); QGuiApplication app(argc, argv);
例の実行
からサンプルを実行するには Qt Creatorからサンプルを実行するには、Welcome モードを開き、Examples からサンプルを選択します。詳細については、Building and Running an Exampleを参照してください。
© 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.