×

Discussion Board

Results 1 to 8 of 8

Thread: screen size

  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    22

    screen size

    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
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: screen size

    Check with QWidget; QMainWindow is drive from QWidget and QWidget contains function related to size of widget.
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  3. #3
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: screen size

    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
    Join Date
    Dec 2010
    Posts
    142

    Re: screen size

    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
    Join Date
    Mar 2009
    Posts
    22

    Re: screen size

    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
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: screen size

    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
    Join Date
    Mar 2009
    Posts
    22

    Re: screen size

    Thanks, I will build my own DB of screen dimensions

  8. #8
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,557

    Re: screen size


Similar Threads

  1. Get Screen Size.
    By monika.parvanda in forum Symbian
    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
    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
  •  
×