C++ (Qt) tbl = new TableModel(this); tbl->setColumnCount(ui->columnsSpn->value()); tbl->setInputData(rawData); //QByteArray tbl->setBeginAddress(rawPos); ui->rawTbl->setModel(tbl);