123456789101112131415161718192021222324252627 |
- #include <QtCore/QFileInfo>
- #include <QtCore/QSettings>
- #include <QtGui/QApplication>
- #include <QtDeclarative/QDeclarativeView>
- #include <QtDeclarative/QDeclarativeEngine>
- #include <QtDeclarative/QDeclarativeNetworkAccessManagerFactory>
- #include <QtDeclarative/QDeclarativeEngine>
- // QML in a Qt application
- // http://doc.qt.nokia.com/4.7/qtbinding.html
- int main(int argc, char *argv[])
- {
- QApplication application(argc, argv);
- QDeclarativeView view;
- view.setSource(QUrl("qrc:/bubblekid.qml"));
- view.setResizeMode(QDeclarativeView::SizeRootObjectToView);
- QObject::connect(view.engine(), SIGNAL(quit()), &application, SLOT(quit()));
-
- #if defined(Q_OS_SYMBIAN)
- view.showFullScreen();
- #else
- view.setGeometry(QRect(100, 100, 640, 360));
- view.show();
- #endif
- return application.exec();
- }
|