Hello,
Please have a look at the attachment (shot.jpg). I have two widgets. Widget1 is placed first and its size is fixed (as desired).
The Widget2 is places next to it using the addStrech() method.
Following are the lines relevant to placement of Widget2:
Qt Code:
mWidget2 = new Widget2(this); //assigning pointer to Widget2 mLayout->addStretch(0); mLayout ->addWidget(mWidget2);To copy to clipboard, switch view to plain text mode
When I resize the window, I would want to resize Widget2 towards right while keeping it fixed at the left (also shown in attachement).
How can I achieve this?
Bookmarks