PyQT4: Adding combobox in Qtableview
问题 I am new to PyQT. I am interested to add a combobox to the each row of tableView. Is it possible in PyQT 4? I know, it is possible in QT5, but not sure about PyQT. Thank you in advance for help. 回答1: Does this need to be done using a QTableView or can you do it using a QTableWidget? Making the assumption that you can use the Widget vs the View, you can easily add a combobox (or any widget) to a cell. class MainWindow(QtGui.QMainWindow): def __init__(self, parent=None): QtGui.QMainWindow._