@@ -56,6 +56,7 @@ int main(int argc, const char *argv[])
5656 }
5757
5858 ApplicationArguments qmlArgs;
59+ qmlArgs.setSize(parser.windowGeometry());
5960
6061 // The testability driver is only loaded by QApplication but not by QGuiApplication.
6162 // 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[])
9091 }
9192 TouchRegistry touchRegistry;
9293 view->installEventFilter(&touchRegistry);
93− if (parser.windowGeometry().isValid()) {
94− view->setWidth(parser.windowGeometry().width());
95− view->setHeight(parser.windowGeometry().height());
96− }
9794
9895 // You will need this if you want to interact with touch-only components using a mouse
9996 // Needed only when manually testing on a desktop.