Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

QTableView and edit mode

$
0
0
Hello, I have implemented a very simple Widget, let say W::W(QAbstractItemModel * model) {   *tv = new QTableView(this); tv.setModel(model); // case 1   //setModel(model);  // case 2 } and class W : public QTableView {     Q_OBJECT public:   explicit W(QAbstractItemModel * model);   QTableView * tv; } actually in the case 1, the table is editable, in the second not. Can someone explain me what is the distinction between both ?

Viewing all articles
Browse latest Browse all 18427

Trending Articles