PDA

View Full Version : Graphical representation of an array



ithinkso
5th March 2010, 21:50
Hi guys,
I'm writing a little app in Qt now but I have ummm...a concept problem.
I need to graphically represent a data from i.e. int array to looks like this example:


int example_tab[11]={2,3,5,56,8,12,1,0,0,15,3};
http://img708.imageshack.us/img708/5568/tabg.png
(i know, i know...but i made it by hands and fast so...it's not a point ;P)

Have you any ideas or adivces how can i do that?
regards,

squidge
5th March 2010, 22:57
Do you want to use the graphic classes or just show it graphically? With the later you can use a Qt View class with columns to show the contents.

ithinkso
5th March 2010, 23:30
I need to use graphic class be couse arrays are only one type of elements i want to show