我在QListWidget中创建了一个QtDesigner,我想从之前创建的另一个名为"list_1“的列表中添加一些条目。问题是,每当我按组合键时,这个列表(list_1)都在更新。)
#I want to create this method to add the items from list_1 into the `QListWidget`
如何打开QDialog(使用我已经拥有的按钮)并在QListWi
return end < other.end; }并且这些项通过用户输入被添加到QListWidgetQListWidget只包含这些PageRangeListWidgetItem,所以我希望通过调用QListWidget的sortItems()函数,它可以使用重载的operator<按照我的喜好对项目进行排序,但不幸的是,它没有这样做,它继续对列表进行排序,就好像它包含纯QListWidget