Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qt, GUI: "PKG Extraction" Dialog screen centered, next Dialog "Extraction Finished" - window centered #1880

Open
mailwl opened this issue Dec 25, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@mailwl
Copy link
Contributor

mailwl commented Dec 25, 2024

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

@Hermiten Hermiten added the enhancement New feature or request label Dec 28, 2024
@Hermiten
Copy link
Collaborator

@DanielSvoboda Simple things to do I think :p

@DanielSvoboda
Copy link
Contributor

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.

@mailwl
Copy link
Contributor Author

mailwl commented Dec 28, 2024

chatgpt suggest to add code

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

here:

and it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants