创建一个一条记录的数据表类. 2.创建一个model 继承QAbstractListModel. 3.main.cpp中将该model加入进qml,单类形式加入,一个model绑定一个tableview.
確定! 回上一頁