Project

General

Profile

Actions

Bug #6291

closed

WStackedWidget and WHBoxLayout

Added by Harald Elmer almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
Start date:
03/14/2018
Due date:
% Done:

0%

Estimated time:

Description

I experienced some strange behavior with StackedWidget under Wt 4.0.2 which already worked with 3.3.7.

I have a StackedWidget with 3 containers. Although I set first container to WHBoxLayout, elements are placed from top to bottom.

When I switch to second container with setCurrentIndex(1) and reswitching to first with setCurrentIndex(0) elements are placed correctly from left to right.

Also when I create an additional container under the first stacked container, and assign WHBoxLayout to this, i get correct results.


Files

hello.cpp (2.86 KB) hello.cpp compiling hello.cpp with #define THIS_WORKS makes working exe with two containers Harald Elmer, 03/14/2018 03:26 PM
Actions #1

Updated by Roel Standaert over 6 years ago

I see, WStackedWidget sets the display style to none, and then "restores" it to empty, whereas it should actually restore it to flex if it's a container with a flex layout.

Actions #2

Updated by Roel Standaert over 6 years ago

  • Status changed from New to Resolved
Actions #3

Updated by Roel Standaert over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF