It's to long to describe what You should do, but I prepared for You example that reads 4 columns as integers (similar for double) and draws them onto pixmap and display them. This is a quick draft and code don't check for errors.
Main idea here is to read data, that are in format: number coma, i.e.
15, 15, 15, 15,
15, 15, 15, 15
no comma at the end or else there will be an error while converting.
Screens

Snap2..jpg Snap1..jpg

and the code.
example..zip
I hope You will get the general idea how to approach Your problem
Best luck