Synchronizing 2 tableviews when Moving Column.
I have an App with 2 tableviews and 1 custum view on the same datamodel. On both tableviews I have allowed moving columns by horizHeader->setSectionsMovable(true);
In the View it's working OK, but I want to synchronize all my Views after moving a column. So I overwrite the Slot ColumnMoved in MyTableView class, but the debugger never goes into this Slot.
Hi and welcome to devnet,
columnMoved is not virtual so you can't re-implement it.
You should add a slot that will call moveSection on the QHeaderView of your other QTableViews
Hope it helps
Much thanks. That works.
You're welcome !
Since it's working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)
Also, consider up-voting answer(s) that you found useful, so others may find them more easily.