开发者

file selector in a qtablewidget

开发者 https://www.devze.com 2022-12-19 17:20 出处:网络
I\'m trying to get one cell in a QTableWidget to be开发者_Go百科 a box with button at end\"...\" with file selector, but don\'t know how to change what kind of widget the cell is.To control the types

I'm trying to get one cell in a QTableWidget to be开发者_Go百科 a box with button at end"..." with file selector, but don't know how to change what kind of widget the cell is.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号