PDA

View Full Version : QComboBox QTavleView



pmjz
14th September 2011, 00:46
Hi Guys,

I want to directly display the QComboBox in the QTableView, not need to double click, Could anyone give me some ideas? thanks in advance.

pkj
14th September 2011, 17:57
In the QTableView, change the editTriggers to currentchanged. Use function QAbstractItemView::setEditTriggers(EditTriggers triggers) or better still do it in designer.