I'm trying to get one cell in a QTableWidget to be a box with button at end"..." with file selector, but don't know how to change what kind of widget the cell is.
+4
A:
To control the types of cells in a table, it's best to use the QTableView
class. Then, by using QItemDelegate
you can make some table cell a button, to which you may bind a signal that opens a dialog.
I recommend starting by reading about delegate classes in the Qt docs.
Eli Bendersky
2010-02-08 03:50:50
+1
A:
he should also read the earlier documentation model-view introduction
yan bellavance
2010-02-08 04:35:28
@yan: if you want to supplement someone's answer, you can either edit it or add a comment
Eli Bendersky
2010-02-08 04:47:31
@Eli: Not necessary, unless the addition is rather small. If one has lots to add in, he should go for another answer. Anyway, that's at Yan's will.
Viet
2010-06-08 01:25:45