UID:165274
UID:159353
lemonzll:loader加载完成以后,用findChild配合objectName来查找对应的对象。还有种方式,你弄个cpp类,在qml里面调用cpp类的slot函数或者property,把qml里面的对象当作函数参数传过去。例如cpp里面有个slot函数void setObject(QObject* item),qml里面你要把id是a的qml对象传过去,你加上 .. (2020-06-29 17:39)
UID:207513