QPushButton derives its size hint from its text and icon and ignores a layout set on it, so the recipe options, the shipyard schematic options and the layout dialog's module buttons all measured themselves as empty and clipped the name and recipe line drawn on them. OptionButton takes the hint from its layout instead and lets the style add what the button frame needs, so the padding stays the platform's rather than a number picked here. It falls back to QPushButton's own hint when there is no layout, which is what the "(None)" option uses. The module buttons drop their fixed height with it and take what their cost line needs. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ne3mejABZoLWKLh8fgpM3x
30 KiB
30 KiB