From 74cb688242c000aecc43a7c1f9f70b22d5902549 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Mon, 15 Sep 2025 17:34:03 +0200 Subject: [PATCH] QRM: allocate UI on the heap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MainWindow has ModelFactory as a member, and that again has large arrays as members. The stack on Windows cannot handle that, and the test fails to start. Allocate the UI on the heap. Pick-to: 6.10 6.10.0 Change-Id: I8659fd7bc267f133e66e5620a430ba32b7abae2a Reviewed-by: Maycon Stamboroski Reviewed-by: Tor Arne Vestbø --- tests/manual/corelib/itemmodels/qrangemodel/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/manual/corelib/itemmodels/qrangemodel/main.cpp b/tests/manual/corelib/itemmodels/qrangemodel/main.cpp index 8de23be3657..b87fbcf3c20 100644 --- a/tests/manual/corelib/itemmodels/qrangemodel/main.cpp +++ b/tests/manual/corelib/itemmodels/qrangemodel/main.cpp @@ -605,8 +605,8 @@ int main(int argc, char *argv[]) { QApplication app(argc, argv); - MainWindow mainWindow; - mainWindow.show(); + auto mainWindow = std::make_unique(); + mainWindow->show(); return app.exec(); }