PDA

View Full Version : how to realize this situation in QTableWidget



Annl
4th February 2018, 09:51
I want to do something for some cell in QTableWidget. When I doesn't click the cell, the table cell display the text. When I click on the cell, the table cell display as comobox. I can select some value in the comobox and after select the value, the table cell will display the value and comobox will disappeared.

Best wishes,
Anne

high_flyer
4th February 2018, 21:15
https://doc.qt.io/qt-5.10/model-view-programming.html

Read the part about delegates.