×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Jun 2010
    Posts
    73

    Find out Screen resolution

    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
    Join Date
    Mar 2010
    Posts
    53

    Re: Find out Screen resolution

    Hi lukiluuk !!

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

  3. #3
    Registered User
    Join Date
    Jul 2009
    Posts
    29

    Re: Find out Screen resolution

    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
    Join Date
    Apr 2009
    Posts
    506

    Re: Find out Screen resolution

    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
    Join Date
    Jun 2010
    Posts
    73

    Re: Find out Screen resolution

    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
    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
    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
  •  
×