[h1][h1][/h1][/h1]我通过QVariant(QImage), 将QImage对象加到了QVariant中, 希望QVariant的值(图片)显示出来...我先treeview.setmodel(QAbstractItemModel),, 添加一个节点后,之后调用bool QAbstractItemModel::setData ( const QModelIndex & index, const QVariant & value, int role = Qt::EditRole ) 函数, 为什么在TreeView中没有显示呢?? 将value 换成 字符串 就可以显示 出来....
请求帮助!!!