Hi,
Thanks a lot yours link. It help me to find the solution. I need to pass the object worksheet for before or after parameter;
so instead of
sheet->dynamicCall("Copy");
sheet->dynamicCall("Copy");
To copy to clipboard, switch view to plain text mode
I do
worksheet_copy_after = sheets->querySubObject("Item( int )", 5 );
QVariant param1
= worksheet_copy_after
->asVariant
();
worksheet_to_copy->dynamicCall("Copy (const QVariant&)",param1);
worksheet_copy_after = sheets->querySubObject("Item( int )", 5 );
QVariant param1 = worksheet_copy_after->asVariant();
worksheet_to_copy->dynamicCall("Copy (const QVariant&)",param1);
To copy to clipboard, switch view to plain text mode
and the copy occurs in the same worksheets!!!
Thanks
Bookmarks