blob: 08613906b9ab07a08c7b44469a8c65c65005c4d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
//! [Minimal Example]
#include <QApplication>
#include <QWebEngineView>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
//! [Using QWebEngineView]
QWebEngineView view;
view.load(QUrl("https://qt-project.org/"));
view.resize(1024, 750);
view.show();
//! [Using QWebEngineView]
return app.exec();
}
//! [Minimal Example]
|