I need to obtain screen dimensions using Qt. I would think I'd use the Qt mobility apis here: http://doc.qt.nokia.com/qtmobility-1.0-tp/
But I see nothing that would obtain screen size (x/y). Am I missing something?
Thanks.
Maybe the QDesktopWidget has what you need?
const QRect QDesktopWidget::screenGeometry ( int screen = -1 ) const
Returns the geometry of the screen with index screen. The default screen is used if screen is -1. See also screenNumber().
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With