Project

General

Profile

Actions

Bug #1497

closed

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

Added by Anonymous over 11 years ago. Updated about 11 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
Actions #1

Updated by Stefan Ruppert over 11 years ago

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

Actions #2

Updated by Koen Deforche over 11 years ago

  • Target version changed from 3.2.3 to 3.3.0
Actions #3

Updated by Koen Deforche about 11 years ago

  • Status changed from New to InProgress
Actions #4

Updated by Koen Deforche about 11 years ago

  • Status changed from InProgress to Resolved
Actions #5

Updated by Koen Deforche about 11 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF