Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Qt qstring format problem
Qt qstring format problem
The classmate upstairs, Tlost_heaven, is right. In this case, you should consider using QTableWidget.

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.