hi, all, I use i memeber QHash<QString,QPixmap> in my class ,but when the object is destructed ,it wrong,how can i destruct it.
class CommElement
{
public:
CommElement()
{
}
~CommElement()
{
//qDeleteAll(m_picManager);
//m_picManager.clear();
}
void loadPictures(QDataStream &s) //return the picture path which have been handle
{
s>>m_picManager;
}
QHash<QString,QPixmap> pictureManager()
{
return m_picManager;
}
private:
QHash<QString,QPixmap> m_picManager;
};
Bookmarks