From b099c65115c6c0a1bc69823fd685451115799a71 Mon Sep 17 00:00:00 2001 From: Laurent Trinques Date: Thu, 22 Oct 2026 16:53:44 +0200 Subject: [PATCH] Fix #1562: cross-references settings squeezed on a low screen On a 1080p screen with display scaling (QT_SCALE_FACTOR=1.25, or Windows at 125 %), the "Representation" group of the Cross-references tab in Settings > New project was drawn with its widgets on top of each other. The tab widget of that page had a minimum size of 800 x 650 set by hand. A minimum height set by hand replaces the one computed from the tabs, so the dialog's scroll area, which is there for low screens, believed 650 px were enough and never scrolled, while the cross-references tab needs more. Keep the minimum width only: the tabs' own minimum height now applies and the dialog scrolls instead. --- sources/ui/configpage/configpages.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sources/ui/configpage/configpages.cpp b/sources/ui/configpage/configpages.cpp index 6144349ea..8b3717293 100644 --- a/sources/ui/configpage/configpages.cpp +++ b/sources/ui/configpage/configpages.cpp @@ -159,7 +159,12 @@ NewDiagramPage::NewDiagramPage(QETProject *project, diagram_layout -> addWidget(bpw); diagram_layout -> addWidget(ipw); - tab_widget->setMinimumSize(800, 650); + //A width only: a minimum height set by hand replaces the one the + //tabs ask for, so on a low screen (1080p with display scaling, + //#1562) the dialog's scroll area never scrolled and the tallest + //tab (cross-references) was squeezed, its widgets drawn on top + //of each other. Without it the dialog scrolls instead. + tab_widget->setMinimumWidth(800); tab_widget -> addTab (diagram_widget, tr("Sheet")); tab_widget -> addTab (m_cpw, tr("Conductor"));