摘要: 方法:创造model类继承QSqlTableModel,然后重载data函数头文件:#ifndef INCOME_MODEL_H#define INCOME_MODEL_H#include <QSqlTableModel>class Income_Model : public QSqlTableModel{public: Income_Model(QObject * parent = 0, QSqlDatabase db = QSqlDatabase()); ~Income_Model(); QVariant data(const QModelIndex &idx, int 阅读全文
posted @ 2013-06-02 11:05 justwake 阅读(7107) 评论(1) 推荐(1) 编辑