qt-interest@trolltech.com
[Top] [All Lists]

Re: [Qt-interest] QTableWidget: allow or deny selection

Subject: Re: [Qt-interest] QTableWidget: allow or deny selection
From: "Malyushytsky, Alex"
Date: Mon, 1 Mar 2010 15:30:16 -0800
If you need to prevent QTableWidgetItem  be selected you don't set 
ItemIsSelectable flag.
Check void QTableWidgetItem::setFlags(Qt::ItemFlags flags);

Hope this helps,
    Alex

From: qt-interest-bounces@xxxxxxxxxxxxx 
[mailto:qt-interest-bounces@xxxxxxxxxxxxx] On Behalf Of Paolino Marmolaro
Sent: Monday, March 01, 2010 2:49 PM
To: Qt-interest@xxxxxxxxxxxxx
Subject: [Qt-interest] QTableWidget: allow or deny selection

Hi,

I need to allow or deny single cell selection depending on some conditions 
(e.g. the value in the cell).

I'm using a QTableWidget without inheriting from it.
Any suggestions?





---------------------------------------------------------------------------------------------------
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."

_______________________________________________
Qt-interest mailing list
Qt-interest@xxxxxxxxxxxxx
http://lists.trolltech.com/mailman/listinfo/qt-interest

<Prev in Thread] Current Thread [Next in Thread>