Wt 3.2.3-rc1: Layout problem of a WGroupBox within a WContainerWidget
Within the attached test application the contents of a WGroupBox using a WVBoxLayout is not shown at all if the WGroupBox is added to a WContainerWidget->addWidget(). If the same WGroupBox is added to another WVBoxLayout and the layout is set for the container using setLayout() all widgets are rendered correctly.
I have added two defines which demonstrates the different behaviour:
#define USE_CONTAINER_INSTEAD_OF_LAYOUT 1
//#define USE_CONTAINER_INSTEAD_OF_LAYOUT 0
#define USE_CONTAINER_INSTEAD_OF_GROUPBOX 0
//#define USE_CONTAINER_INSTEAD_OF_GROUPBOX 1
- With USE_CONTAINER_INSTEAD_OF_LAYOUT=1 and USE_CONTAINER_INSTEAD_OF_GROUPBOX=0 the layout problem shows up.
- With USE_CONTAINER_INSTEAD_OF_LAYOUT=1 and USE_CONTAINER_INSTEAD_OF_GROUPBOX=1 the layout looks ok, but I have no GroupBox (title)
- With USE_CONTAINER_INSTEAD_OF_LAYOUT=0 and USE_CONTAINER_INSTEAD_OF_GROUPBOX=0 the layout looks good, but if I resize the container to a very small size all widgets are very small and looks ugly (current implementation) (I get no vertical overflow scrollbar)