PDA

View Full Version : maximize grid with maximize window



bibhukalyana
18th May 2011, 10:25
Hi everyone,
I created a gui project having a grid layout.I want to maximize the grid and its all child when i will maximize the mainwindow(like widgets/groupbox project in qt example).But it is not happening.
How i will do this ? Is there any option or function i have to set or call ?

Santosh Reddy
18th May 2011, 20:50
When you maximize the QMainWindow, all the containing the QLayouts and QWidgets should be maximized to their best views, unless you have put some restriction in the code or using QtDesigner, if so you need to reset them. What you expect is the simple behaviour, if you use QtDesigner set all the widget layouts to GridLayout, if you use code to generate widgets, this is default behaviour

bibhukalyana
19th May 2011, 08:16
thanks for reply.Now it is working.
I right click on mainwindow and in layout i changed to grid and it is working fine.