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.
This commit is contained in:
Laurent Trinques
2026-10-22 16:53:44 +02:00
parent f8e9a1a457
commit b099c65115
+6 -1
View File
@@ -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"));