只需要在
Model类中的 QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; 方法中进行判断 设置颜色Model类中的 QVariant data(const QModelIndex
只需要在
Model类中的 QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; 方法中进行判断 设置颜色Model类中的 QVariant data(const QModelIndex