Unsolved How to place a window in the center of the screen?
-
I have seen this page, but it does not work anymore.
My version Qt 6.2.1, my operating system Debian 11.
How to place the program window in the center of the screen?
-
Hi,
One way is to change for: QScreen and primaryScreen.
-
How can I do that? I do not understand
-
In place of getting the desktop widget you get the primary screen from the
qApp
object and then continue as shown in the link you posted.