Skip to content

#14104 Fix property/preferences dialog size handling#14110

Open
magnesj wants to merge 2 commits into
devfrom
fix/14104-property-export-dialog-size
Open

#14104 Fix property/preferences dialog size handling#14110
magnesj wants to merge 2 commits into
devfrom
fix/14104-property-export-dialog-size

Conversation

@magnesj
Copy link
Copy Markdown
Member

@magnesj magnesj commented Jun 4, 2026

Fixes #14104

The property export dialog could open at a very small size on some window manager configurations (observed on certain RHEL8 setups). The change is split into two commits.

Add minimum size floor to property view dialog

PdmUiPropertyViewDialog never asserted a size, and the inner scroll area reports an artificially small minimum size hint that some window managers honor literally, collapsing the dialog. The dialog now overrides sizeHint() and minimumSizeHint() to provide a sensible floor that the window manager cannot collapse. The floor is capped by the content's preferred size so intentionally small dialogs are not enlarged. This fix is always active.

Remember user-defined size of property and preferences dialogs

The dialog size is persisted for both PdmUiPropertyViewDialog and the Preferences dialog RiuPropertyViewTabWidget. The geometry is saved to the application settings on close and restored on the next show, so a user-adjusted size is remembered across sessions. Restoring is done in showEvent rather than the constructor so it is applied reliably for a modal dialog. The settings key includes the bound object class keyword so distinct dialogs that share a window title do not collide.

This persistence is gated behind a new "Remember Dialog Size" experimental feature, disabled by default. PdmUiPropertyViewDialog cannot access RiaPreferencesSystem, so the application pushes the current setting via the static enableGeometryPersistence(), following the existing pattern used for class-name display. RiuPropertyViewTabWidget queries the feature directly.

@magnesj magnesj requested a review from jonjenssen June 4, 2026 10:37
magnesj added 2 commits June 4, 2026 16:33
Override sizeHint() and minimumSizeHint() in PdmUiPropertyViewDialog so the dialog cannot open collapsed. The inner scroll area reports an artificially small minimum size hint that some window managers honor literally, shrinking the dialog to an unusable size (issue #14104). The floor is capped by the content's preferred size so intentionally small dialogs are not enlarged.
Persist the geometry of PdmUiPropertyViewDialog and RiuPropertyViewTabWidget to the application settings on close and restore it on the next show. Restoring is done in showEvent rather than the constructor so it is applied reliably for a modal dialog. The settings key includes the bound object class keyword so distinct dialogs that share a window title do not collide.

This behaviour is gated behind a new "Remember Dialog Size" experimental feature, disabled by default. PdmUiPropertyViewDialog cannot access RiaPreferencesSystem, so the application pushes the current setting via the static enableGeometryPersistence(), following the existing pattern used for class-name display. RiuPropertyViewTabWidget queries the feature directly.
@magnesj magnesj force-pushed the fix/14104-property-export-dialog-size branch from 462511e to 0050df4 Compare June 4, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

property export window original size is too small

2 participants