QTable is the abstract widget of choice whenever you need to present spreadsheet data to the user or let the user edit such data.
Please see the class documentation for details.