[Qt-interest] QTableWidgetItem , checked items and edit triggers
Malyushytsky, Alex
alex at wai.com
Mon Nov 15 20:26:19 CET 2010
Use Qt::ItemIsUserCheckable
Alex
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of mmiacca
Sent: Monday, November 15, 2010 4:13 AM
To: qt-interest
Subject: [Qt-interest] QTableWidgetItem , checked items and edit triggers
Hi
I have two QTableWidgetItem with many checked items and text items, one QTableWidgetItem only to view, another to view and edit.
If I setEditTriggers to NoEditTriggers, the text items are read only but the checked items remains read write...
Any help?
Tks in advance
for(...
{
QTableWidgetItem * opN = new QTableWidgetItem();
opN->setTextAlignment(Qt::AlignRight);
setItem(iR, H_BYTE_COL_DEC, opN);
setRowHighByteValueDec(iR);
}
for(...
{
QTableWidgetItem * opBit = new QTableWidgetItem();
opBit->setCheckState(Qt::Unchecked);
setItem(iR, iC, opBit); // many of this
}
---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.
“This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you.”
“Please consider our environment before printing this email.”
More information about the Qt-interest-old
mailing list