QGenericMatrix is an option, but the number of row and column is unchangable.

and for you code:
QString** matrix = new QString*[numberofFlights];
for (int i = 0; i < numberofFlight; i++) // is this misspelled?