I have a QTableWidget which provides multi-row-selection property. Now new requirement is that partial rows should be grayed out, and the user can not select them.
For QTableWidget, I set:
Qt Code:
To copy to clipboard, switch view to plain text mode
How could I disable the selection of certain rows of this table? Thanks in advance.
Added after 11 minutes:
Ha, I found the answer:
QTableWidgetItem::setFlags(Qt::NoItemFlags) solves my problem!
Bookmarks