eyecreate
eyecreate

Reputation: 1047

file selector in a qtablewidget

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.

Upvotes: 1

Views: 453

Answers (1)

Eli Bendersky
Eli Bendersky

Reputation: 273366

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.

Upvotes: 4

Related Questions