Support #8603
openWTreeTable as widget does not render correctly
0%
Description
Heelo,
I am trying to reproduce the standard example of WTreeTable in the widget galery. Firstly I do not understand how one is supposed to implement the exact example as the treeTable is not placed inside any container. If I simply paste this example into any of my classes, it displays nonthing. In any case I was planning to place the tree inside a container. So I did the following small mod to the example:
// auto treeTable = Wt::cpp14::make_uniqueWt::WTreeTable();
auto treeTable = tableFooter->elementAt(1,3)->addWidget(cpp14::make_unique());
As you can see I have commented out the first line from the example and replaced it with a line declaring the tree inside a container.
This compiles and "works" but the tree table appears totally distorted. Please see pics.
NB I have tried the same with both Chrome and Firefox and the distortion is very similar and equally bad.
Any Advice appreciated.
Files
Updated by Dimitrios Sideris almost 3 years ago
my apologies, the correct modified line is:
auto treeTable = tableFooter->elementAt(1,3)->addWidget(cpp14::make_unique<Wt::WTreeTable>());
thanks
Updated by Dimitrios Sideris almost 3 years ago
- File distorted wtabletree.PNG distorted wtabletree.PNG added
I am including the pic below (again). Sorry I am new to this and don't completely understand the controls.