Suppose you have a table widget class.
Do you do table.row(i).column(0).setText(students[i].surname())
or table[0][i] = students[i].surname()
the latter makes way less sense but the simplicity is so luring ;)
ditto for: table.row(0).column(0).setBackground(red)
vs: table[0][0].setBackground(red)
Note that Table::row
returns a Table::Row
, whose column
function returns a Table::Cell, and Table::Cell provides either setText
or op=
(as well as setBackground).
Same for Table::op[]
and Table::Row::op[]
.
Your thoughts?