main.cpp
38 lines
| 1.1 KiB
| text/x-c
|
CppLexer
Michal Klocek
|
r747 | /**************************************************************************** | ||
Jani Honkonen
|
r830 | ** | ||
Titta Heikkala
|
r2688 | ** Copyright (C) 2014 Digia Plc | ||
Jani Honkonen
|
r830 | ** All rights reserved. | ||
Titta Heikkala
|
r2740 | ** For any questions to Digia, please use contact form at http://qt.io | ||
Jani Honkonen
|
r830 | ** | ||
Titta Heikkala
|
r2740 | ** This file is part of the Qt Charts module. | ||
Jani Honkonen
|
r830 | ** | ||
Titta Heikkala
|
r2740 | ** Licensees holding valid commercial license for Qt may use this file in | ||
** accordance with the Qt License Agreement provided with the Software | ||||
** or, alternatively, in accordance with the terms contained in a written | ||||
** agreement between you and Digia. | ||||
Jani Honkonen
|
r830 | ** | ||
** If you have questions regarding the use of this file, please use | ||||
Titta Heikkala
|
r2740 | ** contact form at http://qt.io | ||
Jani Honkonen
|
r830 | ** | ||
****************************************************************************/ | ||||
Michal Klocek
|
r747 | |||
Titta Heikkala
|
r2714 | #include <QtWidgets/QApplication> | ||
#include <QtWidgets/QMainWindow> | ||||
Tero Ahola
|
r1015 | #include "chartview.h" | ||
Michal Klocek
|
r471 | |||
Titta Heikkala
|
r2712 | QT_CHARTS_USE_NAMESPACE | ||
Michal Klocek
|
r471 | |||
int main(int argc, char *argv[]) | ||||
{ | ||||
QApplication a(argc, argv); | ||||
Jani Honkonen
|
r883 | |||
Michal Klocek
|
r747 | //![4] | ||
Jani Honkonen
|
r2102 | ChartView *chartView = new ChartView(); | ||
Michal Klocek
|
r747 | QMainWindow window; | ||
Michal Klocek
|
r471 | window.setCentralWidget(chartView); | ||
window.resize(400, 300); | ||||
window.show(); | ||||
Tero Ahola
|
r1015 | //![4] | ||
Jani Honkonen
|
r883 | |||
Michal Klocek
|
r471 | return a.exec(); | ||
} | ||||