[GH-ISSUE #1880] Qt, GUI: "PKG Extraction" Dialog screen centered, next Dialog "Extraction Finished" - window centered #647

Closed
opened 2026-02-27 21:07:24 +03:00 by kerem · 6 comments
Owner

Originally created by @mailwl on GitHub (Dec 25, 2024).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/1880

Windows 11.
If main shadPS4 window not centered on screen itself, then Dialog "PKG Extraction" - in screen center, "Extraction Finished" - in center of window.
I think, both dialogs should be in same position

Originally created by @mailwl on GitHub (Dec 25, 2024). Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/1880 Windows 11. If main shadPS4 window not centered on screen itself, then Dialog "PKG Extraction" - in screen center, "Extraction Finished" - in center of window. I think, both dialogs should be in same position
kerem 2026-02-27 21:07:24 +03:00
Author
Owner

@Hermiten commented on GitHub (Dec 28, 2024):

@DanielSvoboda Simple things to do I think :p

<!-- gh-comment-id:2564399815 --> @Hermiten commented on GitHub (Dec 28, 2024): @DanielSvoboda Simple things to do I think :p
Author
Owner

@DanielSvoboda commented on GitHub (Dec 28, 2024):

I've already helped with some things in the interface, but I'm not an expert on the subject, I'll have to leave it to someone else.

<!-- gh-comment-id:2564519718 --> @DanielSvoboda commented on GitHub (Dec 28, 2024): I've already helped with some things in the interface, but I'm not an expert on the subject, I'll have to leave it to someone else.
Author
Owner

@mailwl commented on GitHub (Dec 28, 2024):

chatgpt suggest to add code

                dialog.setGeometry(QStyle::alignedRect(Qt::LeftToRight, Qt::AlignCenter,
                                                          dialog.size(), this->geometry()));

here:
github.com/shadps4-emu/shadPS4@ee974414d2/src/qt_gui/main_window.cpp (L870)

and it works

<!-- gh-comment-id:2564526944 --> @mailwl commented on GitHub (Dec 28, 2024): chatgpt suggest to add code ``` dialog.setGeometry(QStyle::alignedRect(Qt::LeftToRight, Qt::AlignCenter, dialog.size(), this->geometry())); ``` here: https://github.com/shadps4-emu/shadPS4/blob/ee974414d28b4da47fda57024987057c928e2872/src/qt_gui/main_window.cpp#L870 and it works
Author
Owner

@Hermiten commented on GitHub (Feb 12, 2025):

@mailwl Open a PR ? :)

<!-- gh-comment-id:2654588895 --> @Hermiten commented on GitHub (Feb 12, 2025): @mailwl Open a PR ? :)
Author
Owner

@Xphalnos commented on GitHub (Feb 15, 2025):

@mailwl I created a PR for your issue. https://github.com/shadps4-emu/shadPS4/pull/2453
Thanks for the code idea!

<!-- gh-comment-id:2661098820 --> @Xphalnos commented on GitHub (Feb 15, 2025): @mailwl I created a PR for your issue. https://github.com/shadps4-emu/shadPS4/pull/2453 Thanks for the code idea!
Author
Owner

@Xphalnos commented on GitHub (Feb 17, 2025):

Fixed by https://github.com/shadps4-emu/shadPS4/pull/2453.

<!-- gh-comment-id:2662743192 --> @Xphalnos commented on GitHub (Feb 17, 2025): Fixed by https://github.com/shadps4-emu/shadPS4/pull/2453.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#647
No description provided.