[Qt-interest] QTableWidget: how to make read-only certain columns
AngelWarrior
srikanth.bemineni at gmail.com
Sun Apr 5 21:02:19 CEST 2009
void QTableWidgetItem::setFlags (
Qt::ItemFlags<http://doc.trolltech.com/4.4/qt.html#ItemFlag-enum>
*flags* ) use the Qt::ItemIsEditable
I did not find the a unset flag hope somebody from qt answers this.
One more trick is use setCellWidget() in QTableWidget to a QlineEdit and
make the lineEdit as readonly.This way you can make some cells editable and
some not.
On Sun, Apr 5, 2009 at 1:44 PM, Miguel Cardenas <mfcardenas at gmail.com>wrote:
> Hello list
>
> One question, is it possible to make read-only certain columns in a
> QTableWidget? Didn't find something like this in the documentation...
>
> Thanks
>
> --
> Miguel Cardenas
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
--
_/\_
With Regards
SB Angel Warrior
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090405/a2e668cf/attachment.html
More information about the Qt-interest-old
mailing list