PDA

View Full Version : Resizing screen dimensions using backbuffer in QT?



JimDaniel
24th September 2007, 23:46
Another question. I hope I don't wear out my welcome here with these questions, but you guys have been so helpful...

Our software needs to be able to scale in screen resolutions and still have precise layouts. My boss suggested we may be able to design for a certain resolution and stretch the image using the backbuffer to whatever resolution, in order to preserve the exact layout we need, although at a cost of image quality. I'm aware that the Qt layouts are made to scale dynamically, but its just not cutting it.

So is this even possible using QT and if so, how would it be done?

Thanks for any direction you can give...

wysota
25th September 2007, 00:13
I really wouldn't do that if I were you (I mean the scaling thing). You might implement your whole application within the Graphics View framework and get the scaling practically for free but it's a lot of work if you want to use widgets. I don't know how exact layout you need, but Qt should be able to do what you require provided you tell it exactly what to do. Things like size policies and size hints are your friends.