Discussion Board

Results 1 to 8 of 8

Thread: screen size

  1. #1
    Registered User kenouz1234's Avatar
    Join Date
    Mar 2009
    Posts
    22
    hello,

    How I can get the device screen size (his diagonal: for example 2.4 in, or his widht an height in cm or in) using Qt/Qt Mobility or Symbian C++?

    Thanks

  2. #2
    Nokia Developer Champion kkrish's Avatar
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,029
    Check with QWidget; QMainWindow is drive from QWidget and QWidget contains function related to size of widget.

  3. #3
    Nokia Developer Champion danhicksbyron's Avatar
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209
    Nothing reliable. Since often the same software load is run on devices with different sized screens even when there's a screen size function (as there is, I believe, on Android) it's apt to be wrong.

  4. #4
    Regular Contributor dahiya.vinod's Avatar
    Join Date
    Dec 2010
    Posts
    142
    Use this link
    http://wiki.forum.nokia.com/index.ph...Qt_for_Symbian

    But it will provide size in pixels not mm.

  5. #5
    Registered User kenouz1234's Avatar
    Join Date
    Mar 2009
    Posts
    22
    I need the screen size in cm or inch for my application and not the number of pixels, there is a way to know the diagonal size or the width and height of the screen (cm or inch) using Qt/Qt Mobility or Symbian C++?

  6. #6
    Nokia Developer Champion danhicksbyron's Avatar
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209
    You can guess, given the number of pixels and industry averages for pixel pitch. Or you can query the device model and have your own DB of screen dimensions. Or have the user input screen size.

  7. #7
    Registered User kenouz1234's Avatar
    Join Date
    Mar 2009
    Posts
    22
    Thanks, I will build my own DB of screen dimensions

  8. #8
    Nokia Developer Moderator petrib's Avatar
    Join Date
    Mar 2003
    Posts
    9,430

Similar Threads

  1. Get Screen Size.
    By monika.parvanda in forum Symbian C++
    Replies: 3
    Last Post: 2010-12-02, 11:47
  2. Issue Camera with width screen size bigger than height screen size
    By langtu_yka in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2010-11-16, 08:56
  3. Screen Size
    By earendil in forum Qt
    Replies: 1
    Last Post: 2010-02-15, 13:50
  4. how to get the screen size?
    By dreamplayer in forum Symbian C++
    Replies: 1
    Last Post: 2004-04-14, 19:50

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