diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2013-04-18 13:30:07 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2013-04-23 09:24:32 +0300 |
commit | 5862599d088d072b4ac89ed556a645680f786d80 (patch) | |
tree | 838db883bea99b520ae90c634746f9f942fb6832 /demos/quick2chart/main.cpp | |
parent | b0caebd0eeccca1b5e901faa6e5df1a1f6301312 (diff) |
Generate charts plugin for QtQuick2 as well as QtQuick1
Added quick2 versions of a couple of demos, too.
Task-number: QTRD-1922
Change-Id: Ie3e2c1c40c38e06fc6d3afe27289eccc2f997f67
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'demos/quick2chart/main.cpp')
-rw-r--r-- | demos/quick2chart/main.cpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/demos/quick2chart/main.cpp b/demos/quick2chart/main.cpp new file mode 100644 index 00000000..e02f45ea --- /dev/null +++ b/demos/quick2chart/main.cpp @@ -0,0 +1,34 @@ +/**************************************************************************** +** +** Copyright (C) 2013 Digia Plc +** All rights reserved. +** For any questions to Digia, please use contact form at http://qt.digia.com +** +** This file is part of the Qt Commercial Charts Add-on. +** +** $QT_BEGIN_LICENSE$ +** Licensees holding valid Qt Commercial licenses may use this file in +** accordance with the Qt Commercial License Agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and Digia. +** +** If you have questions regarding the use of this file, please use +** contact form at http://qt.digia.com +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include <QtWidgets/QApplication> +#include <QtQuick/QQuickItem> +#include "qtquick2applicationviewer.h" + +int main(int argc, char *argv[]) +{ + QApplication app(argc, argv); + + QtQuick2ApplicationViewer viewer; + viewer.setSource(QUrl("qrc:/qml/quick2chart/main.qml")); + viewer.showExpanded(); + + return app.exec(); +} |