阅读背景:

在QTableView中将数据从QSqlTableModel转换为人形(enum - > String)

来源:互联网 

I'm using a QSqlTableModel to get the data from the required table, and I'm rendering it in the GUI using QTableView. The problem that I have now is that I want to change different fields (convert them) from the existing value to another one (enum -> String). For example an existing value of 1 should be displaied as ERROR in the column of QTableView.I'm using a QSqlTableModel to get the data from




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: