• 2832阅读
  • 0回复

relationalTableModel里面的setData()怎么设置参数 [复制链接]

上一主题 下一主题
离线jiaqizeng
 
只看楼主 倒序阅读 楼主  发表于: 2013-07-30
哪位大神好心教教我QSqlRelationalTableModel里面怎么用setData()给带外键属性的值赋默认值,帮助文档里是这么写的


For relational columns, value must be the index, not the display value. The index must also exist in the referenced table, otherwise the function returns false.

真心看不懂要怎么设置参数

快速回复
限100 字节
 
上一个 下一个