If you trust this link, click it to continue.
https://stackoverflow.com/questions/79400487/pyqt6-issue-in-fetching-geometry-of-the-window