WTreeView not working when hidden during construction
When a WTreeView is hidden at construction (e.g. as child of
a WStackedWidget), resizing of the column widths is not working and data are
sometimes not displayed.
Using version 4.1.2
The attachment contains an test case, based on the WTreeView example.
Just replace TreeViewExample.C in the original example by the attached file
I added 3 lines:
< b = wc->addWidget(cpp14::make_unique("Show"));
< b->clicked().connect(panel, &WPanel::show);
The first line hides the panel containing the treeview at construction time.
Line 2 and 3 add a button to manually show the panel.
Start the application and press Show. Then try to resize the columns.
If you remove 'panel->hide()' everything works perfect again