#ifndef CUSTOMITEM_H #define CUSTOMITEM_H #include <QStandardItemModel> #include <QDebug> class CustomItem : public QStandardItem { public: CustomItem(); CustomItem(const QString &text):QStandardItem(text){ qDebug()<<"æœ‰å‚æž„é€ :"<<text; } bool operator < (const QStandardItem &other) const { qDebug()<<"< custom"; return this->text().toDouble() < other.text().toDouble(); } }; #endif // CUSTOMITEM_H