Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor lukiluuk's Avatar
    Join Date
    Jun 2010
    Posts
    73
    Hi all
    How can I find out which resolution the screen of a device has in the code? Thanks for your help.

    Cheers, Luki

  2. #2
    Registered User Zombieisme's Avatar
    Join Date
    Mar 2010
    Posts
    53
    Hi lukiluuk !!

    Use this code :
    Code:
    #include <QDesktopWidget>
    
    QApplication::desktop()->geometry()

  3. #3
    Registered User quangndba's Avatar
    Join Date
    Jul 2009
    Posts
    29
    Hi Luki,
    Please use this for get screen resolution

    Code:
    TRect aScreenRect;
    AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EApplicationWindow, aScreenRect);
    TInt iScreenWidth  = aScreenRect.Width();
    TInt iScreenHeight = aScreenRect.Height();
    Regards,

    QUANG NGUYEN

  4. #4
    Registered User vladest's Avatar
    Join Date
    Apr 2009
    Posts
    506
    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

  5. #5
    Regular Contributor lukiluuk's Avatar
    Join Date
    Jun 2010
    Posts
    73
    Hi Guys
    Works perfect for me! Great thanks!

    Cheers, Luki

Similar Threads

  1. Screen Resolution
    By stevejanko in forum Mobile Java General
    Replies: 3
    Last Post: 2009-10-03, 09:04
  2. How to get the screen resolution?
    By kalgi in forum Symbian C++
    Replies: 6
    Last Post: 2009-02-12, 14:57
  3. How can I find the Resolution of a Camera?
    By emailatravi in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2008-04-26, 17:29
  4. Screen resolution
    By stenlik in forum Symbian C++
    Replies: 0
    Last Post: 2007-10-30, 09:32
  5. Find the Screen Resolution of the Mobile
    By sidduexpert in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2003-10-08, 01:01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved