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. does qtquick have a "setDesignResolutionSize" feature?

does qtquick have a "setDesignResolutionSize" feature?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 346 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.
  • fatfatsonF Offline
    fatfatsonF Offline
    fatfatson
    wrote on last edited by
    #1

    setDesignResolutionSize is a function in cocos2dx, simply say, it will setup a fixed size of the "root canvas" inspite of how much the real screen is, then wholely scale the canvas to match the screen.
    it's very usefull for a fixed width(or height) root layout design, if the app is portrait, i will lock the width and adjust the height to keep the same aspect of screen, and all the "set position" operations later could simply use the accurate number instead of percent.

    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