Use QVector instead raw pointer.