StupidBeauty
Read times:2110Posted 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

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4