add function to get rows and columns in a QStringList