12345678910111213141516171819202122232425 |
- #include <QApplication>
- #include "qmlapplicationviewer.h"
- #include <QDeclarativeContext>
- #include <QCamera>
- #include <QCameraImageCapture>
- #include "camfeatures.h"
- // Uses
- // http://www.developer.nokia.com/Community/Wiki/CamFeatures:_QML_component_to_get_camera_capabilities
- Q_DECL_EXPORT int main(int argc, char *argv[])
- {
- QScopedPointer<QApplication> app(createApplication(argc, argv));
- qmlRegisterType<cameraFeatures>("CameraFeatures", 1, 0, "CameraFeatures");
- QmlApplicationViewer viewer;
- viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockLandscape);
- viewer.setMainQmlFile(QLatin1String("qml/SensorCamera/main.qml"));
- viewer.showExpanded();
- return app->exec();
- }
|