QT Inherit from QTableWidgetItem to Widget and overide '<' operator
问题 I want a QTableWidget with certain cells as customized QProgressBar s, and I want it to be possible to sort the columns containing these. My customized QProgressBar is inheriting from both QProgressBar and QTableWidgetItem , and I am overiding the '<' operator to allow for sorting. Below is an example of a customized QTableWidget ( QTableWidget_custom ), QTableWidgetItem ( QTableWidgetItem_double ) and QProgressBar ( QProgressBar_custom ). After the table is populated, I am only able to sort