00001 #include <QtGui/QApplication> 00002 #include "qmlapplicationviewer.h" 00003 00004 int main(int argc, char *argv[]) 00005 { 00006 QApplication app(argc, argv); 00007 00008 QmlApplicationViewer viewer; 00009 viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); 00010 viewer.setMainQmlFile(QLatin1String("qml/qmlanimationex/main.qml")); 00011 viewer.showExpanded(); 00012 00013 return app.exec(); 00014 }