mardi 29 novembre 2016

QTableWidget get vertical header label

In the code below:

setCentralWidget(&tableWidget);
tableWidget.setRowCount(5);
qDebug() << tableWidget.verticalHeaderItem(1)->text();

Why don't I get the text lable as output?

Aucun commentaire:

Enregistrer un commentaire