PDA

View Full Version : Displaying data in QTable



raghvendramisra
6th September 2007, 10:13
hi,
i am using Qtable in my application and display data read from the file into its cell .

Now my problem is that the string data is displayed at the left corner of the cell while numerical data is displayed at the right corner.

but i want the to appear at the same place.
How can i do this?????????

regards

Raghvendra

jpn
6th September 2007, 13:48
Try reimplementing QTableItem::alignment(). As the docs state, the default implementation aligns numbers to the right and any other text to the left.