Project

General

Profile

Actions

Support #648

closed

How to add checkbox column in WTableView?

Added by saxon zhang over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
12/17/2010
Due date:
% Done:

0%

Estimated time:

Description

I am new user of WT, as checkbox column is so often used in tableview,is there any simple and convenient method to add checkbox column in tableview?

Thanks!

Best Regards!

Actions #1

Updated by Thomas Suckow over 14 years ago

Look into the flag ItemIsUserCheckable for the column in your data model, I don't know if it is what you want.

If it doesn't give you what you want then it wouldn't be too hard to make a CheckBox specialization of WAbstractItemDelegate. But there may be other ways that are easier that I don't know of.

Actions #2

Updated by Koen Deforche over 14 years ago

  • Status changed from New to Resolved

Marking as Resolved since Thomas' solution could very well be what Saxon is looking for ? An example of the checkbox column is available in the treeview example.

Actions #3

Updated by Koen Deforche over 14 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF