class CTreeWidgetItem : public QTreeWidgetItem
{
public:
CTreeWidgetItem (const QStringList &strings = QStringList(), int type = 0);
~CTreeWidgetItem ();
private:
bool operator<(const CTreeWidgetItem & other) const;
};
只需要根据自己要求进行重写bool operator< 即可进行自定义 排序