Layout Horizontally
-
I have a QMainWindow with 2 QTreeViews, next to each other horizontally. The one on the left is smaller than the one on the right. But when I choose Layout Horizontally, they automatically become equal sizes. How can I keep the one on the right bigger than the one on the left?
-
Try to use horizontalStretch
-
Hi.
My situation is exactly the same and i like to use QSplitter in this scenario.But HOW do i achieve this with QDesigner???
In the "Layout" submenue of the context menu of QMainWindow in the object view, the two optiones with splitter are grey/inactive - in the toolbar, too. wtf?
How can i actually use them?
And yes, there is one widget inside "centralwidget" - two widgets dont help either.
Thanks
L.PS: Using QDesigner 4.7.0 on Windows.
-
Hi Gerolf.
Thanks for your answer.But in my opionion you missed the point. Sorry. But i forgot to mention, there is no Splitter widget in QDesigner wigdet toolbox!
The question remains, how do i do this with QDesigner 4.7.0 ?
Or do i just dont get it?
Thanks
Lars -
Got the "Form" menu and select "Lay Out Horizontally in a Splitter".
And read "this":http://doc.qt.nokia.com/4.7/designer-quick-start.html, "this":http://doc.qt.nokia.com/4.7/designer-layouts.html and "this":http://doc.qt.nokia.com/4.7/designer-manual.html
-
Ok, got it now.
I didnt know that i actually need two "layouts" in the right order. (Though the splitter is no real layout, i know).
First the splitter "layout" on the two wigdets. Then the layout of the main window (for dynamic resizing of the widgets).
A always applied the layout of the main window first, but then your stuck. And there is no splitter option in the first place.
Thanks a lot.