How to Copy – Paste Multiple Items form QTableView created by QStandardItemModel to a text/excel file?

The difficulty here is that the selected cells in the table may be non-contiguous and not in any particular order. So the task is to calculate the smallest rectangle that will include all the selected cells, and then create a data structure from that which is suitable for passing to a csv writer. Below is … Read more