diff options
author | Michal Klocek <michal.klocek@theqtcompany.com> | 2015-12-02 11:37:46 +0100 |
---|---|---|
committer | Michal Klocek <michal.klocek@theqtcompany.com> | 2016-01-26 14:51:48 +0000 |
commit | 9490ae8570c950e8120e498fbdc459f5754df0bf (patch) | |
tree | 13b31b2d202051acc9f77e8f69e0ea90ffe00f90 /examples/webenginewidgets/cookiebrowser/main.cpp | |
parent | 7d453a0526fdc001b8af826756030cc571110403 (diff) |
Add cookiebrowser example
A cookiebrowser shows collected cookies during
browsing, users can view cookie content, delete
and add new cookies.
Change-Id: Ib9cdc29e7ca34c488dd249b44f9e32491517bd60
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'examples/webenginewidgets/cookiebrowser/main.cpp')
-rw-r--r-- | examples/webenginewidgets/cookiebrowser/main.cpp | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/examples/webenginewidgets/cookiebrowser/main.cpp b/examples/webenginewidgets/cookiebrowser/main.cpp new file mode 100644 index 000000000..c122eb7c3 --- /dev/null +++ b/examples/webenginewidgets/cookiebrowser/main.cpp @@ -0,0 +1,52 @@ +/**************************************************************************** +** +** Copyright (C) 2016 The Qt Company Ltd. +** Contact: http://www.qt.io/licensing/ +** +** This file is part of the demonstration applications of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:BSD$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see http://www.qt.io/terms-conditions. For further +** information use the contact form at http://www.qt.io/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** As a special exception, The Qt Company gives you certain additional +** rights. These rights are described in The Qt Company LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 3.0 as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU General Public License version 3.0 requirements will be +** met: http://www.gnu.org/copyleft/gpl.html. +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "mainwindow.h" +#include <QApplication> +#include <QUrl> + +int main(int argc, char *argv[]) +{ + QApplication app(argc, argv); + MainWindow window(QUrl("http://qt.io")); + window.show(); + return app.exec(); +} |