I need to read data from a file and write its values into a QTableWidget. I programm this:

TBLiradopts->insertRow(row);
TBLiradopts->item(row,col)->setText(qv);

where qv is the datavalue (Qstring), row and col change (in a loop).

But I obtained an error

Excepción no controlada en 0x6541ab55 (QtGuid4.dll) en QTDAM.exe: 0xC0000005: Infracción de acceso al leer la ubicación 0x00000000.

And point to this:

inline void QTableWidgetItem::setText(const QString &atext)
{ setData(Qt:isplayRole, atext); }

What's the problem?
Thanks