y673893131 / qmlTableView5_12

qml for tableview(5.12) quick control 2 damo ,support resize width, swap column
6 stars 4 forks source link

Thank you sir #1

Open LISPos opened 3 years ago

LISPos commented 3 years ago

Hello I have a question. I want to know how to add columns to Tableview during program operation. For example, I want to increase the column by clicking the button. Your source is very helpful. Could you possibly answer the question? Thank you for reading my poor English sentences.

y673893131 commented 3 years ago

You can refer to QDataModel::QDataModel in qdatamodel.cpp to add a slot function to modify the columns of the table. You can trigger a signal to associate the previously added slot function when your new button is pressed, so that you can modify it Up