@@ -56,6 +56,7 @@ int main(int argc, const char *argv[])
58 ApplicationArguments qmlArgs;
58 ApplicationArguments qmlArgs;
59+ qmlArgs.setSize(parser.windowGeometry());
60 // The testability driver is only loaded by QApplication but not by QGuiApplication.
61 // The testability driver is only loaded by QApplication but not by QGuiApplication.
61 // However, QApplication depends on QWidget which would add some unneeded overhead => Let's load the testability driver on our own.
62 // However, QApplication depends on QWidget which would add some unneeded overhead => Let's load the testability driver on our own.
@@ -90,10 +91,6 @@ int main(int argc, const char *argv[])
91 TouchRegistry touchRegistry;
92 TouchRegistry touchRegistry;
92 view->installEventFilter(&touchRegistry);
93 view->installEventFilter(&touchRegistry);
93− if (parser.windowGeometry().isValid()) {
94− view->setWidth(parser.windowGeometry().width());
95− view->setHeight(parser.windowGeometry().height());
98 // You will need this if you want to interact with touch-only components using a mouse
95 // You will need this if you want to interact with touch-only components using a mouse
99 // Needed only when manually testing on a desktop.
96 // Needed only when manually testing on a desktop.