Hello,

finally after a year just reading my first post

I'm using Qt 4.3 and I want to create a table (QTableView) with a different number of columns per row, for example
Row 0: Col0 Col1
Row 1: Col0
Row 2: Col0 Col1 Col2

Is this even possible with a QTableView, or would I have to implement my own custom view?

If it is possible, how can I access the row number? I thought I could use a custom model and return different values in columnCount() depending on the row, but the ModelIndex just returns -1 as row number.

Thanks in advance,

Arghargh