[Solved]SIGSEGV after delete QComboBox
-
-
Read the documentation to setIndexWidget. It says:
Sets the given widget on the item at the given index, passing the ownership of the widget to the viewport.
So you're not allowed to delete it yourself but only by calling setIndexWidget again with another widget (or probably 0).Are you sure you want setIndexWidget and not QStyledItemDelegate?