Get screen coordinates in Qt
This code example shows how to get screen coordinates and screen size in a Qt application. The API QDesktopWidget::screenGeometry() returns the application rect (screen size of device) and API QDesktopWidget::availableGeometry() returns client rect (screen size minus status pane). It is useful in UI applications that do not use layout managers by implementing virtual QWidget::resizeEvent().
You will get application rect.
- File:QtScreenCoordinates.zip shows screen coordinates on screen and example is tested on Nokia 5800 XpressMusic.