Project

General

Profile

Support #8603

WTreeTable as widget does not render correctly

Added by Dimitrios Sideris 20 days ago. Updated 20 days ago.

Status:
New
Priority:
Normal
Target version:
-
Start date:
05/29/2021
Due date:
% Done:

0%

Estimated time:

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

distorted wtabletree.PNG (50.3 KB) distorted wtabletree.PNG wtreetable rendered wrongly Dimitrios Sideris, 05/29/2021 03:25 PM
#1

Updated by Dimitrios Sideris 20 days ago

my apologies, the correct modified line is:

auto treeTable = tableFooter->elementAt(1,3)->addWidget(cpp14::make_unique<Wt::WTreeTable>());

thanks

#2

Updated by Dimitrios Sideris 20 days ago

I am including the pic below (again). Sorry I am new to this and don't completely understand the controls.

Also available in: Atom PDF