Hi,

I'm using a QTableView with a QAbastractTableModel. In some rows in the table, all columns should be merged into one cell, according to the model data. I'm confused that setSpan is a function of the viewer class, not the model class. Then how should I use setSpan to achieve my goal?

I tried to subclass QTableView and modify setModel function. Call setSpan inside setModel, didn't work....

Thanks!