current position:Home>Does QT have a good way to determine whether the current coordinates are within the screen (supporting multiple screens).

Does QT have a good way to determine whether the current coordinates are within the screen (supporting multiple screens).

2022-08-06 09:37:31CSDN Q&A

Does QT have a good way to determine whether the current coordinates are in the screen (supporting multiple screens)?
I don't want to let my window run out of the screen based on the coordinates of the upper left corner, and support multiple screens. Is there a good solution?
Sometimes the main screen is on the right and the secondary screen is on the left, and the window coordinates will also appear negative, so there will be bugs in the way of judging the positive and negative coordinates of the coordinates.

copyright notice
author[CSDN Q&A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/218/202207301824177238.html

Random recommended