qt 树item上挂类或结构体
LINK_INFOWINDOW是自定义的枚举
item->setData(LINK_INFOWINDOW, Qt::UserRole, QVariant::fromValue(pInfoWindow));
CCom* pMsMng = item->data(LINK_INFOWINDOW, Qt::UserRole).value<CCom*>();
LINK_INFOWINDOW是自定义的枚举
item->setData(LINK_INFOWINDOW, Qt::UserRole, QVariant::fromValue(pInfoWindow));
CCom* pMsMng = item->data(LINK_INFOWINDOW, Qt::UserRole).value<CCom*>();