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. Do I need to account for the width and height when orientation change

Do I need to account for the width and height when orientation change

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 116 Views
  • 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.
  • T Offline
    T Offline
    Tahar
    wrote on last edited by Tahar
    #1

    Example

    ApplicationWindow  {
    	Rectangle{
    		/// I need this to always be relative to the actual device width
    		width: .1 * parent.width 
    		/// I need this to always be relative to the actual device height
    		height: .75 * parent.height
    	}
    }
    

    Now if the device orientation changes, does the width becomes height, and height becomes width, and do I need to check which one is greater than the other?
    And do I need to rotate my content or the content is automatically rotated?

    I hope my question makes sense

    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