[Qt-interest] Fixing position of an element across all resolutions

Santhosh Y santhosh at softjin.com
Mon Jun 7 13:04:46 CEST 2010


Hi,

I am developing my GUI elements so that it supports all resolutions.
- I am laying out all GUI elements in QLayout  so that it expands 
automatically in vertical direction depending on the resolution
     (I have set Fixed policy  for horizontal and MinimumExpanding  
policy for vertical)
When I launch my app in various resolutions I am able to see my elements 
properly but slightly shifted down in the screen.

For example;
- I made ui forms for 1440X900 resolution (width & height)
- When I launch in 1280 X 1024, elements are slightly coming down; since 
the available height is more

How to fix the elements at top (0,0 , w, h) position always irrespective 
of resolution?

-- 
----------------------------------------------------
Y Santhosh Kumar - 
Senior Software Engineer,
SoftJin Technologies Pvt Ltd,
www.softjin.com
----------------------------------------------------



Business Disclaimer
____________________________________________________________
This e-mail message and any files transmitted with it are intended solely
for  the use  of the  individual or entity  to which they  are  addressed. It
may  contain confidential,  proprietary or legally  privileged  information.
If  you  are  not  the  intended recipient please be advised that you have
received  this  message in error and any use is strictly prohibited. Please
immediately  delete it  and all copies of it from your system, destroy any
hard  copies  of  it and  notify  the  sender  by return mail. You must not,
directly or indirectly, use,  disclose,  distribute, print, or copy any part of
this message if you are not the intended recipient.
___________________________________________________________





More information about the Qt-interest-old mailing list