Hi,
I am developing an application on my Laptop using the form classes for GUI Windows/Dialogs.
Every object inside the parent window/dialog has the default settings for size & I am using Layouts & Spacers as advised in a previous thread.
I am only hard coding the size of the parent window according to what I feel is good on my Laptop.
When I run the application on my Desktop (has a slightly different screen resolution), the Main Window does not fit in the screen.
So I decided to resize every window depending upon a ratio between the resolution of my laptop & the users resolution.
Example, a window of size 800×400 on my laptop(1000×800) will be 400×200 on my desktop(500×400) <numbers are imaginary for sake of understanding>.
I am calculating this ratio at startup using data from QDesktop object.
I would like to know whether my approach is correct?
If not then what is the standard practise?
Thank You
↧