Project

General

Profile

Bug #1497

Wt 3.2.3-rc1: Layout problem of a WGroupBox within a WContainerWidget

Added by Anonymous almost 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
Start date:
10/24/2012
Due date:
% Done:

0%

Estimated time:

Description

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)

Files

TestApp.cc (10.9 KB) TestApp.cc Anonymous, 10/24/2012 07:30 PM
#1

Updated by Stefan Ruppert almost 8 years ago

Just forgot to log in. This is my bug report ;-)

#2

Updated by Koen Deforche almost 8 years ago

  • Target version changed from 3.2.3 to 3.3.0
#3

Updated by Koen Deforche over 7 years ago

  • Status changed from New to InProgress
#4

Updated by Koen Deforche over 7 years ago

  • Status changed from InProgress to Resolved
#5

Updated by Koen Deforche over 7 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF