[Qt-interest] layout issue
Sajjad
dosto.walla at gmail.com
Sun Jan 31 02:47:50 CET 2010
Hello forum,
Let me explain what i have in the attached screen-shot.
http://www.student.itn.liu.se/~sajis997/Screenshot.png
I have a main window with a GroupBox named "Matrix View" and inside that
group box i have several widgets aligned in a layout as follows:
1. First we have the "Model-View Matrix" group box and inside that we have
16 labels aligned in a grid layout.
2. Rest of the other labels in group boxes are also aligned in grid layout.
3. I also have 2 other layout with label "=" and "X".
4. At last i have got 3 group boxes, "=" and "X" in horizontal layout.
Because of doing that(group box's top level layout) all the widgets inside
that top level group
box("Matrix View") will resize correctly when the window is resized.
Now i would like to customize that resizing as follows:
When the main window is maximized the all the widgets inside the "Matrix
View" group box will be centralized without expanding the widgets
themselves, which means that the "Model-View Matrix" , "View Matrix" ,and
"Model Matrix" group boxes and the 2 labels will be of fixed size.
if the main window is minimized a scroll-bars will show up inside the top
group box to scroll.
Any idea on how i can make that happen?
Regards
Sajjad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100131/5ba70392/attachment.html
More information about the Qt-interest-old
mailing list