From 4b4b7d68f28cec1a0009776637a2fe41f34ac256 Mon Sep 17 00:00:00 2001 From: Keith Smith Date: Mon, 7 Sep 2026 15:18:09 -0600 Subject: [PATCH] Fix profile dialog form fields collapsing to sizeHint on macOS QFormLayout without an explicit field growth policy falls back to the active Qt style's default, which differs per platform: Linux's Fusion/Breeze styles expand fields to fill the row, but macOS's native style defaults to FieldsStayAtSizeHint, leaving fields small with empty space beside them. Set the policy explicitly so the dialog renders consistently everywhere. Co-Authored-By: Claude Sonnet 5 --- src/profile_dialog.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/profile_dialog.cpp b/src/profile_dialog.cpp index 2ddb557..3dbf0ac 100644 --- a/src/profile_dialog.cpp +++ b/src/profile_dialog.cpp @@ -71,6 +71,9 @@ ProfileDialog::ProfileDialog(QWidget* parent) auto* layout = new QVBoxLayout(this); auto* form = new QFormLayout(); + form->setFieldGrowthPolicy(QFormLayout::ExpandingFieldsGrow); + form->setFormAlignment(Qt::AlignLeft | Qt::AlignTop); + form->setLabelAlignment(Qt::AlignRight); m_nameInput->setPlaceholderText(QStringLiteral("Production Bastion")); m_hostInput->setPlaceholderText(QStringLiteral("example.internal"));