diff options
Diffstat (limited to '')
-rw-r--r-- | main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -17,6 +17,7 @@ #include <QQuickView> #include <QGuiApplication> +#include <QScreen> #include <MDeclarativeCache> Q_DECL_EXPORT int main(int argc, char *argv[]) @@ -25,6 +26,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[]) QScopedPointer<QQuickView> view(MDeclarativeCache::qQuickView()); view->setSource(QUrl("qrc:/main.qml")); view->setTitle("Stopwatch"); - view->showFullScreen(); + view->resize(app->primaryScreen()->size()); + view->show(); return app->exec(); } |