Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Screen.width and screen.height returning invalid values in Harmattan
Forum Updated to NodeBB v4.3 + New Features

Screen.width and screen.height returning invalid values in Harmattan

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 977 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    srikanth_trulyit
    wrote on last edited by
    #1

    When using screen.width,screen.height in portrait mode they return the values of 854,480 respectively - which is what they should be in landscape mode. Problem is that width returns 854 which should be the height and height returns 480 which should be the width when in Portrait mode. I am getting the same values for screen.displayWidth, screen.displayHeight. The same works fine in Symbian. Is this any known issue?

    To reproduce the problem create a new Harmattan Qt Quick Application in Qt Creator and just print the values in console.

    I am using Qt Creator 2.4 with Qt 4.7.4

    Thanks,
    Srikanth

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved