[solved] about using QSharedPointer
-
here, I have a sense,
@
void RemoveSelectedContactMsg( QSharedPointerAAModule::AAParticipant node)
@
in AAParticipant, there is a function named getName(),@
void RemoveSelectedContactMsg( QSharedPointerAAModule::AAParticipant node)
{
node.getName();
}
@but there is an error ,
error C2027: 使用了未定义类型“AAModule::AAParticipant”
error C2227: “->getName”的左边必须指向类/结构/联合/泛型类型where is error?
[[moved to desktop since this is not QML related (also added [solved] while at it), Tobias]]
-
fixed , I have a mistake , sorry.
@
node.data()->getName();
@