I somehow have solved the issue by using QList as a index for inserting rows into table from the QMap. But need bit more lines of code. Thank you all for giving me good suggestions.