mirror of https://github.com/qt/qt3d.git
26 lines
779 B
C++
26 lines
779 B
C++
|
/*************************************************************************
|
||
|
*
|
||
|
* Copyright (c) 2016, Klaralvdalens Datakonsult AB (KDAB)
|
||
|
* All rights reserved.
|
||
|
*
|
||
|
* See the LICENSE.txt file shipped along with this file for the license.
|
||
|
*
|
||
|
*************************************************************************/
|
||
|
|
||
|
#include <QGuiApplication>
|
||
|
#include <Qt3DAnimation/QAnimationAspect>
|
||
|
#include <Qt3DQuickExtras/Qt3DQuickWindow>
|
||
|
#include <Qt3DQuick/QQmlAspectEngine>
|
||
|
#include <QQmlEngine>
|
||
|
#include <QQmlContext>
|
||
|
|
||
|
int main(int argc, char **argv)
|
||
|
{
|
||
|
QGuiApplication app(argc, argv);
|
||
|
Qt3DExtras::Quick::Qt3DQuickWindow view;
|
||
|
view.registerAspect(new Qt3DAnimation::QAnimationAspect());
|
||
|
view.setSource(QUrl("qrc:/main.qml"));
|
||
|
view.show();
|
||
|
return app.exec();
|
||
|
}
|