PDA

View Full Version : QTableView + QSqlQueryModel column alignment



frido
21st July 2008, 23:31
Hi!
I found a lot of answers on this forum but this is my first post.
I can't find a solution to this.

I use QSqlTableModel to get some data from database and QTableView to display it. How can I change alignment for let's say first column in table?

And if my query returns double in first column, how can I format this column in TableView to display my localized currency format?

tnx for help

cydside
22nd July 2008, 06:12
Take a loook at this post:

http://www.qtcentre.org/forum/f-qt-programming-2/t-qtreeview-alignment-14193.html