WTableView does not layout correctly when inside a WTabWidget
When I use a WTableView inside a WTabWidget, the WTableView does not layout correctly. I assume this forum post refers to the same problem:
The WTableView is streched to the entire size of the tab widget as expected and visible by the grey border.
Problem 1: The horizontal scrollbar is displayed after the last entry in the table, instead of the lower end of the WTabWidget (see Problem1.png)
Problem 2: When the window is resized to a smaller size, the horizontal scrollbar disappears, the vertical scrollbar does not appear (see Problem2.png)
When I use the same code outside a WTabWidget, everything works as expected.
I attached a minimal sample code that demonstrates the problem, this refers to Wt 4.5.1.
Update: It seems to be more like a problem in the WStackedWidget-part of the WTabWidget and this helps:
Is this expected behavior or a bug?