Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Screen resolution - position of mobile (vertical or horizontal)
Forum Updated to NodeBB v4.3 + New Features

Screen resolution - position of mobile (vertical or horizontal)

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 3.2k 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.
  • C Offline
    C Offline
    chikymanzanares
    wrote on last edited by
    #1

    Hi,

    I have a android tablets with a resolution 800x480.

    I have a qt aplication. I adjust the size with setFixedSize(480,800).

    But I have 2 problems:

    If I have the tablets in vertical position, I see the application correctly, but if I change to a horizontal position,
    Android puts the window in a vertical positio, and then, the application is not watched well.

    Because, I have a window with a resolution 480x800 on a screen 800x480.

    I wonder if I could detect the tablet position to adapt the window.

    My second problem is that I want that the program runs on any resolution, for example, 480x300. Could I know the resolution of the device.

    Thanks

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      Why do you use a fixed size?
      I would just use fullscreen.

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      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