Important: Please read the Qt Code of Conduct -

does qtquick have a "setDesignResolutionSize" feature?

  • 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.

Log in to reply