Project

General

Profile

Actions

Bug #1975

open

WBoxLayout::setResizable using BottomToTop or RightToLeft direction

Added by Стойчо Стефанов Stoycho Stefanov almost 11 years ago. Updated almost 11 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
06/11/2013
Due date:
% Done:

0%

Estimated time:

Description

Hey,

when the direction of the WBoxLayout is LeftToRight or TopToBottom and there are just two child widgets I have to use index 0 to set the border between the widgets be resizable. In contrary, when the directions are BottomToTop or RightToLeft, I have to use index 1 ?!

The documentation states that the method WBoxLayout::setResizable(index) sets whether the border that separates item from the next item may be resized by the user. Here raises the question which is the next item when the layout direction is BottomToTop or RightToLeft. I expect that the layout direction have to be changed without the need to additionally to redefine the index that determines the resizable border.

Regards

Stoycho


Files

resizableBoxLayout.cpp (3.08 KB) resizableBoxLayout.cpp resizable WBoxLayout Стойчо Стефанов Stoycho Stefanov, 06/11/2013 09:10 AM
Actions #1

Updated by Стойчо Стефанов Stoycho Stefanov almost 11 years ago

Hey,

I just recognized another problem when resizing is enabled. When I resize the parent widget with the BoxLayout the child items are resized as well, BUT when I just once had used the resize handle and had resized the items with it, than resizing of the parent widget is not properly propagated to the layout and its items, i.e, the item which index is used to set the layout resizable become fix sized.

I hope, you understand what I mean, because to provide a test-case would be a bit hard.

Best regards,

Stoycho

Actions #2

Updated by Стойчо Стефанов Stoycho Stefanov almost 11 years ago

Hey,

and one more question. Is it possible to change the layout direction when the widgets are already rendered, I mean, to use a combo box for example to switch between LeftToRight and BottomToTop. I'm currently trying to achieve that but seems not be on the right way. Any advice?

Thanks in advance,

Stoycho

Actions #3

Updated by Стойчо Стефанов Stoycho Stefanov almost 11 years ago

Hey,

you can freely ignore comment #2. I got it!

BR,

Stoycho

Actions

Also available in: Atom PDF