mercredi 2 juillet 2014

QT 5.3 QListView column problems


Vote count:

0




guys! I'm newbie in QT Programming. I want to ask, why columns is appearing as usual row on my QListView control?



QStandardItemModel* model = new QStandardItemModel(0, 1, ui->listView);

QList<QStandardItem*> items;
items.append(new QStandardItem("Column 1"));
model->insertColumn(0, items);

ui->listView->setModel(model);


asked 1 min ago






Aucun commentaire:

Enregistrer un commentaire