一直显示QComboBox in QTableView,不是点击后显示。QComboBox和其他的单控件不一样,没有办法在paint()方法中给QComboBox 数据。可以在paint()方法中一直打开QComboBox的编辑状态。
测试可以通过
https://stackoverflow.com/questions/53059449/qstyleditemdelegate-to-display-qcombobox-in-qtableview
一直显示QComboBox in QTableView,不是点击后显示。QComboBox和其他的单控件不一样,没有办法在paint()方法中给QComboBox 数据。可以在paint()方法中一直打开QComboBox的编辑状态。
测试可以通过
https://stackoverflow.com/questions/53059449/qstyleditemdelegate-to-display-qcombobox-in-qtableview