Well, you code is just the table cell class, there is no code to add data to the table widget.

Your first screenshot shows an empty table, your second shows one that has actual rows and columns.

Either add cell items or call setRowCount() and setColumnCount()

Cheers,
_