PDA

View Full Version : problem of porting from windows to linux



jyoti kumar
22nd May 2006, 08:46
I have created main window using Qt Designer & put Text edit
ors & Tree widgets on the same.
On windows, it fits fine but on linux, where screen size is
big, thw widgets are not adjusted acordingly & I am
getting blank space on the bottom of the window.
How shall I take care of this so that its portable across both
platforms & widget sizes adjust accordingly.
Pls help.

Regards
Jyoti

zlatko
22nd May 2006, 08:48
Have you use layouts ?

munna
22nd May 2006, 08:49
You should put your widgets in the layout in such a way that even if you window is resized, either your widgets should also resize (to fill in the spaces) or they should move(so that the spacing is proportionate).

jyoti kumar
22nd May 2006, 09:27
No I have not used layouts.
Do I need to use the same.

Regards
Jyoti

jpn
22nd May 2006, 09:42
In designer:
Open context menu on the background of the main window, choose Lay out-> and select one of the layout options (eg. Lay Out in a Grid).

Use spacers, nested layouts and/or play with widgets' size policies if you're not satisfied how the widgets are laid out.

Using Qt Designer: Layouts (http://doc.trolltech.com/4.1/designer-editing-mode.html#layouts)