I resolved it by declaring append for both QList<Order> and QList<OrderItem>