beginInsertRows(parent, row, row + count - 1);endInsertRows();
struct item{datatype array[];item* previous;item* next;}items
item *insterting;fill(inserting);beginInsertRows(parent, row, row + count - 1);items[row]->next = inserting[0];inserting[0]->previous = items[row];items[row+count -1]->previous = inserting[count];inserting[count]->next = items[row+count -1];endInsertRows();