Guest User

Untitled

a guest
Jan 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. void exportMyTable(const QTableWidget& table){
  2. ...
  3. table.grab().save(fileExportFilePath);
  4. }
  5.  
  6. void exportMyTable(const QTableWidget& table){
  7. QTableWidget copyTable;
  8. copyTable.setRowCount(table.rowCount());
  9. copyTable.setColumnCount(table.columnCount());
  10. for (int c = 0; c < table.columnCount(); ++c)
  11. for (int r = 0; r < table.rowCount(); ++r)
  12. copyTable.setSpan(r, c, table.rowSpan(r, c), table.columnSpan(r, c));
  13. ...
  14. }
Add Comment
Please, Sign In to add comment