[Qt-interest] Howto set cells inside QTableWidget read-only

J-P Nurmi jpnurmi at gmail.com
Sat Jan 10 18:38:02 CET 2009


On Sat, Jan 10, 2009 at 7:19 PM, Matthias Pospiech <matthias.pospiech at gmx.de
> wrote:

> As said in the title, I want to set some items inside the QTableWidget
> table to read only, such that the user can not modify the content.
> How would I do that?
>

item->setFlags(item->flags() & ~Qt::ItemIsEditable);

--
J-P Nurmi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090110/cbe146e1/attachment.html 


More information about the Qt-interest-old mailing list