2013-03-08 11:59:17 +00:00
|
|
|
/****************************************************************************
|
|
|
|
|
**
|
2014-01-27 06:18:03 +00:00
|
|
|
** Copyright (C) 2014 Digia Plc
|
2013-08-13 08:08:56 +00:00
|
|
|
** All rights reserved.
|
|
|
|
|
** For any questions to Digia, please use contact form at http://qt.digia.com
|
2013-03-08 11:59:17 +00:00
|
|
|
**
|
2013-09-10 08:42:13 +00:00
|
|
|
** This file is part of the QtDataVisualization module.
|
2013-03-08 11:59:17 +00:00
|
|
|
**
|
2013-08-13 08:08:56 +00:00
|
|
|
** Licensees holding valid Qt Enterprise licenses may use this file in
|
|
|
|
|
** accordance with the Qt Enterprise License Agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
|
|
|
|
** a written agreement between you and Digia.
|
2013-03-08 11:59:17 +00:00
|
|
|
**
|
2013-08-13 08:08:56 +00:00
|
|
|
** If you have questions regarding the use of this file, please use
|
|
|
|
|
** contact form at http://qt.digia.com
|
2013-03-08 11:59:17 +00:00
|
|
|
**
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
2013-09-04 07:51:33 +00:00
|
|
|
#include "audiolevels.h"
|
2013-03-08 11:59:17 +00:00
|
|
|
|
|
|
|
|
#include <QGuiApplication>
|
|
|
|
|
#include <QAudio>
|
2013-03-25 07:31:57 +00:00
|
|
|
|
2013-09-10 08:42:13 +00:00
|
|
|
using namespace QtDataVisualization;
|
2013-03-08 11:59:17 +00:00
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
|
{
|
|
|
|
|
QGuiApplication app(argc, argv);
|
|
|
|
|
|
|
|
|
|
Q3DBars window;
|
2013-12-09 08:49:49 +00:00
|
|
|
window.setFlags(window.flags() ^ Qt::FramelessWindowHint);
|
2013-11-22 05:56:04 +00:00
|
|
|
window.resize(800, 500);
|
2013-10-09 08:25:00 +00:00
|
|
|
window.setTitle("Qt Data Visualization - Microphone audio levels visualizer");
|
2013-03-08 11:59:17 +00:00
|
|
|
window.show();
|
|
|
|
|
|
2013-09-04 07:51:33 +00:00
|
|
|
AudioLevels audioLevels(&window);
|
2013-03-08 11:59:17 +00:00
|
|
|
|
|
|
|
|
return app.exec();
|
|
|
|
|
}
|