In the model/view framework of Qt, the default model of QTableWidget, namely QTableModel, can be used to store the displayed string data.
QString, you can use the append interface to add spaces at the end. Arg can also be used to format string forms.
Please refer to the help document of Qt for specific usage.