StupidBeauty
Read times:2131Posted at:Tue May 15 17:44:23 2012
- no title specified

转载:Qt How to make a column in QTableWidget read only

要想让QTableWidget中的特定单元格成为只读的,只需向它设置这样的标志位组合即可:Qt::ItemIsSelectable|Qt::ItemIsEnabled。

http://stackoverflow.com/questions/2574115/qt-how-to-make-a-column-in-qtablewidget-read-only

亮点:

11 down vote accepted

Insert into the QTableWidget following kind of items:

QTableWidgetItem *item = new QTableWidgetItem();

item->setFlags(Qt::ItemIsSelectable|Qt::ItemIsEnabled);

Works fine!

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands