Hi all
How can I find out which resolution the screen of a device has in the code? Thanks for your help.
Cheers, Luki
Hi all
How can I find out which resolution the screen of a device has in the code? Thanks for your help.
Cheers, Luki
Hi lukiluuk !!
Use this code :
Code:#include <QDesktopWidget> QApplication::desktop()->geometry()
Hi Luki,
Please use this for get screen resolution
Regards,Code:TRect aScreenRect; AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EApplicationWindow, aScreenRect); TInt iScreenWidth = aScreenRect.Width(); TInt iScreenHeight = aScreenRect.Height();
QUANG NGUYEN
Hi
piece of cake:
QDesktopWidget* desktopWidget = QApplication::desktop();
QRect clientRect = desktopWidget->availableGeometry();
QRect screenRect = desktopWidget->screenGeometry();
screenRect will contains physical screen resolution,
clientRect - resolution, available for non fullscreen application
Symbian & Qt developer. http://vladest.org
Hi Guys
Works perfect for me! Great thanks!
Cheers, Luki