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. Fix image orientation as per app orientation
Forum Updated to NodeBB v4.3 + New Features

Fix image orientation as per app orientation

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 901 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.
  • R Offline
    R Offline
    raj.qtdev
    wrote on last edited by
    #1

    Hi,

    I have locked my application's orientation to portrait. On first screen, I showing an image of size 360x640 to fit the screen in a QLabel. When I launch the app keeping phone in landscape mode, app window launches in portrait mode as I have locked it in the begining and that is fine but the image appears scaled for landscape mode. I have set @setScaledContents(false)@ as well as used @setFixedHeigh()@ @setFixedHeight@ but didn't work.

    What shall I do to simply show the image even if the user is holding the phone is landscape orientation.
    Any idea?

    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