Project

General

Profile

Actions

Bug #13082

open

WStackedWidget::setCurrentIndex does not correctly propagate visibility

Added by Matthias Van Ceulebroeck 3 months ago. Updated about 2 months ago.

Status:
Review
Priority:
Normal
Assignee:
-
Target version:
Start date:
10/03/2024
Due date:
% Done:

0%

Estimated time:

Description

When initially loading a WStackedWidget, all the content is set to a hidden state, with only the first item being visible.
Upon selecting a different index, that widget is made visible, and the previous one is hidden.

Now, on initially loading it may happen that with more complex content (e.g. an additional (StdGrid) layout manager), the content is not all propagated correctly to become visible.
This is only the case the first time the widget is loaded. Once it is made hidden and then visible again, it does correctly show.
Seemingly this happens because StdGridLayoutImpl2::createElement()/ StdWidgetItemImpl::createDomElement() sets the visibility:hidden attribute. This is not correctly removed when the item's parent is set as the current active widget.

The same issue is present with a WMenu holding the same content in its stack if it is loaded eagerly.

A minimal example can be found here:

StackApplication

Actions #1

Updated by Romain Mardulyn about 2 months ago

  • Status changed from New to InProgress
  • Assignee set to Romain Mardulyn
Actions #2

Updated by Romain Mardulyn about 2 months ago

  • Status changed from InProgress to Review
  • Assignee deleted (Romain Mardulyn)
Actions

Also available in: Atom PDF