summaryrefslogtreecommitdiffstats
path: root/examples/webenginewidgets/contentmanipulation/main.cpp
blob: d096a71b23672f82c57140b94a6c80f4e3da36d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

#include <QtWidgets>
#include "mainwindow.h"
#include <qtwebenginewidgetsglobal.h>

int main(int argc, char * argv[])
{
    QCoreApplication::setOrganizationName("QtExamples");
    QApplication app(argc, argv);

    QUrl url;
    if (argc > 1)
        url = QUrl::fromUserInput(argv[1]);
    else
        url = QUrl("http://www.google.com/ncr");
    MainWindow *browser = new MainWindow(url);
    browser->resize(1024, 768);
    browser->show();
    return app.exec();
}