1.error C2471: cannot update program database vc90.pdb
解决方案:https://blog.csdn.net/shuixin536/article/details/8620684
2.提示不能访问QObject的私有成员的解决办法:
class PhotosData:public DataInterface
{ Q_OBJECTpublic: PhotosData(){}; ~PhotosData(){};QPixmap PixMap() { return m_PixMap;};
void SetPixMap(QPixmap pixmap) { m_PixMap = pixmap; };private: QPixmap m_PixMap; QString m_Name; QString m_Time; QString m_Date;};
PhotosData *node = new PhotosData(*mediaItem); //引用了PhotosData基类的默认构造函数
group->Add(node);继承的类要定义使用的构造函数的类型,否则会默认调用基类的构造函数,如果基类的构造函数是私有的。那就会引起报错