Project

General

Profile

WTreeView with custom model: cells overlap

Added by Claire Cassan about 7 years ago

Hi all,

I recently started looking at Wt, I have a background in C and Qt but do not know much about web apps. I tried to create a tree-table view based on a custom model and I have problems with the display: the data in the cells is correct but the cells are not aligned with the header and the text overlaps with other cells in the row (see snapshot).

The code is attached, it uses HDF5 libraries so you may not be able to run it. It uploads a file and displays its content in the tree, nothing spectacular.

I checked the Wt examples, they work beautifully, and I don't know what to do to fix the alignment of the cells. Is it a stylesheet problem or is my view/model implementation wrong? I'm guessing it is a simple newbie problem and a lack of knowledge on my part on css/html, so any pointer is welcome.

Thank you

C.

Overlapping_data.png (127 KB) Overlapping_data.png snapshot showing the alignment issue
Test.zip (1.35 MB) Test.zip corresponding code