QString itemValue = range->dynamicCall("Value2()").toString();
QTableWidgetItem *newItem = new QTableWidgetItem(itemValue);
onetable->setItem(i,j,newItem);
}// end for
}//end for
}
}
[cpp]
////Test: shape嵌入在表中的图片和表,
//shapes = worksheet->querySubObject("Shapes");
//int shapecount = shapes->property("Count").toInt();
//qDebug()<
//QAxObject *shape;
//shape = worksheet->querySubObject("Shapes(int)",1);
//QString shapename = shapes->property("Name").toString();
//qDebug()<