Hi all!
clearSpans() in QTableView - removes all row and column spans in the table view.
How I can remove only selected spans?
Hi all!
clearSpans() in QTableView - removes all row and column spans in the table view.
How I can remove only selected spans?
Does calling setSpan(row, column, 1, 1) on the span you want to remove work?
Why are you trying so hard to avoid looping over the cells in the selection, determining which ones are the top-leftmost in spanned cells, and resetting those? It seems your alternate is to iterate the entire to table to find which items are the top-leftmost item in a spanned area, storing those somewhere, clear all spans, then reinstate all the stored spans except those that would fall inside the selection. Perhaps I don't understand.
Fair enough. That helps
Bookmarks