Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

TableView how to format cells of column

$
0
0
How to apply specific format to cells of specific column in TableView control ? For example, I have column which is filled with values of type double and they are displayed with default format (with arbitrary number of decimal places), I want them formatted with 2 decimal places instead. I cannot put them as QStrings because sort will not work correctly. Also how to right-align that column ?

Viewing all articles
Browse latest Browse all 18427

Trending Articles