[Qt-interest] Checkbox in the header of a model?
Dario Ahdoot
dario.ahdoot at image-metrics.com
Mon Apr 20 18:42:23 CEST 2009
I am trying to put a tri-state check box in the header of one of the columns of my QAbstractItemModel classes, but am finding that it doesn't seem to be possible. I am overriding QAbstractItemModel::headerData and checking for Qt::CheckStateRole but that role never seems to get passed in. Is there any way to achieve this?
Searching Qt docs and google in general seems to have no mention of this. I imagine this feature is so common that Qt would support it out of the box, but I guess I'm wrong.
Thanks,
Dario Ahdoot
Lead Developer | Image Metrics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090420/20733d84/attachment.html
More information about the Qt-interest-old
mailing list