Hi,

I need to create a matrix whose rows and columns are computed dynamically, so I need to create a matrix such as
Qt Code:
  1. int rows = calcRows();
  2. int cols = calcCols();
  3. QGenericMatrix<cols, rows, qreal> matrix;
To copy to clipboard, switch view to plain text mode 
But this will not compile because rows/cols are not constant. Is there a way to work around?

Thanks!