What is this form in Qt?
I am new to Qt. I found there is no way to insert a picture rather than providing the link in this forum. The following is the link, and please see the last graph, i.e. on the bottom of that page.
Can any body tell me what is this form in Qt? It looks like a QTableView, but you can not click on the cell to modify its value, and you can click on those top buttons to select several rows.
What is this form in Qt? Thanks in advance and any comment and answer will be welcome.
That can be done with QTableView. You need to attach a "model":http://qt-project.org/doc/qt-5.1/qtwidgets/model-view-programming.html to be able to add/edit data.
You can also use a "QTableWidget":http://qt-project.org/doc/qt-5.1/qtwidgets/qtablewidget.html. That is easier to use, but not as flexible.
There is no standard "form" that has buttons above a table. Just create QPushButtons, and connect their signals to slots that "change the QTableView's selection":http://qt-project.org/doc/qt-5.1/qtwidgets/qabstractitemview.html#setSelectionModel.
Thank you so much for your reply. This helps me a lot.