Skip to content

Store wizard geometry instead of frame geometry#608

Merged
rainman110 merged 3 commits into
masterfrom
607-python-task-wizard-height-increases-on-reopen
Jul 3, 2025
Merged

Store wizard geometry instead of frame geometry#608
rainman110 merged 3 commits into
masterfrom
607-python-task-wizard-height-increases-on-reopen

Conversation

@marvinoe21
Copy link
Copy Markdown
Collaborator

@marvinoe21 marvinoe21 commented Jun 16, 2025

The issue was caused by using QWidget::frameGeometry() to save the wizard size. QWidget::frameGeometry() includes the title bar. On reopening we restore the geometry of the widget excluding the title bar. This mismatch causes the increasing height.

Switching to QWidget::geometry() fixes the bug.

@marvinoe21 marvinoe21 linked an issue Jun 16, 2025 that may be closed by this pull request
@marvinoe21 marvinoe21 changed the title store wizard geometry instead of frame geometry Store wizard geometry instead of frame geometry Jun 16, 2025
@marvinoe21 marvinoe21 requested a review from rainman110 June 17, 2025 11:00
@marvinoe21
Copy link
Copy Markdown
Collaborator Author

@rainman110

@rainman110 rainman110 merged commit 76abd50 into master Jul 3, 2025
1 check passed
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.

Python Task wizard height increases on reopen

2 participants