How to select WTableView content with the mouse?
Added by Vincenzo Romano 9 months ago
Despite I've told that each item in the model is item->setFlags( ItemIsSelectable ), I cannot select the text with the mouse clipboard.
How can I do this?
Replies
RE: How to select WTableView content with the mouse? - Added by Koen Deforche 8 months ago
Hey Vincenzo,
ItemIsSelectable means that it can be selected as a cell/item, but not textual.
Text selection on the whole table view can be (re)enabled using a call of tableView->setSelectable(true).
Regards,
koen
RE: How to select WTableView content with the mouse? - Added by Vincenzo Romano 8 months ago
... weird ... selection is column oriented! I would have expected row oriented.
Maybe this is why it's being disabled by default!
RE: How to select WTableView content with the mouse? - Added by Koen Deforche 8 months ago
Hey Vincenzo,
Ah. indeed. This is because the table is rendered column-wise... But the selection was actually disabled to support proper drag and drop operations.
Regards,
koen