Project

General

Profile

Actions

Support #14899

open
RJ

wt Widget Gallery How to get/copy the content of a cell

Support #14899: wt Widget Gallery How to get/copy the content of a cell

Added by robs j 20 days ago. Updated 17 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
10/19/2026
Due date:
% Done:

0%

Estimated time:

Description

I have tested with https://www.webtoolkit.eu/widgets/trees-tables/mvc-item-models and https://www.webtoolkit.eu/widgets/trees-tables/mvc-item-models
But in all given examples (tables) I was not able to copy the content of a cell.
What must be changed so the behaviour is the same as for https://www.webtoolkit.eu/widgets/trees-tables/ ?


Files

example-widgetgallery.png (65 KB) example-widgetgallery.png Selected from outside table to cell Age with 70-74 robs j, 10/21/2026 10:33 AM
example-widgetgallery-cell-not-at-beginning-of-table.png (65.9 KB) example-widgetgallery-cell-not-at-beginning-of-table.png Want to select in second column the row one robs j, 10/21/2026 10:37 AM

RM Updated by Romain Mardulyn 19 days ago Actions #1

Hi robs,

You can just call tableView->setSelectable(true);

RJ Updated by robs j 18 days ago Actions #2

Thanks for the given advice.
But the result is not satisfying with firefox or microsoft edge.
I have to point outside the table and then start moving with left mouse down over the cells of a table.
But I can't select the content of a single cell inside a table.
I adpated the example widgetgallery of wt.4.12.6
in file examples\widgetgallery\examples\SmallTableView.cpp
in line 19 added your suggestion: tableView->setSelectable(true); // https://redmine.emweb.be/issues/14899

RM Updated by Romain Mardulyn 17 days ago ยท Edited Actions #3

There is a bug in Wt 4.12.6 that made setSelectable() always prevent selection, regardless of the parameter that was passed. This was fixed in Wt 4.13.0.

Actions

Also available in: PDF Atom