cards/main.cpp
author John Kern <johnk@symbian.org>
Mon, 25 Oct 2010 10:35:32 -0700
changeset 3 2e16639599b7
permissions -rwxr-xr-x
flipping cards example
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
     1
#include <QtGui/QApplication>
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
     2
#include "qmlapplicationviewer.h"
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
     3
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
     4
int main(int argc, char *argv[])
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
     5
{
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
     6
    QApplication app(argc, argv);
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
     7
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
     8
    QmlApplicationViewer viewer;
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
     9
    viewer.setOrientation(QmlApplicationViewer::Auto);
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    10
    viewer.setMainQmlFile(QLatin1String("qml/cards/main.qml"));
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    11
    //viewer.setSource(QUrl("qrc:/qml/cards/flipable.qml"));
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    12
    viewer.show();
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    13
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    14
    return app.exec();
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    15
}