[Qt-interest] QTableView and checkbox

Yawar Amin yawar.amin at gmail.com
Mon May 24 18:33:35 CEST 2010


Hi,

On 2010-05-23, at 15:26, Harry Sfougaris wrote:

> [...]
> The other involves a QItemDelegate and setting the editor.
> 
> I've tried both approaches with mixed results. Can someone please tell me what is the proper way to implement this?

See doc/html/model-view-delegate.html in the Qt documentation for implementation details, but basically you subclass your own QItemDelegate and in its createEditor() method, you create and return a QCheckBox widget.

 HTH,

  Yawar

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100524/462aa2ae/attachment.bin 


More information about the Qt-interest-old mailing list